#[repr(u8)]pub enum HistoryTrackerNeighborEvent {
Added = 0,
Removed = 1,
Changed = 2,
Restoring = 3,
}Expand description
Enum for Neighbor events.
Derived from [otHistoryTrackerNeighborEvent]
(https://openthread.io/reference/group/api-history-tracker#othistorytrackerneighborevent).
Variants§
Implementations§
Source§impl HistoryTrackerNeighborEvent
impl HistoryTrackerNeighborEvent
pub fn from_primitive(prim: u8) -> Option<HistoryTrackerNeighborEvent>
pub const fn into_primitive(self) -> u8
Trait Implementations§
Source§impl Clone for HistoryTrackerNeighborEvent
impl Clone for HistoryTrackerNeighborEvent
Source§fn clone(&self) -> HistoryTrackerNeighborEvent
fn clone(&self) -> HistoryTrackerNeighborEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HistoryTrackerNeighborEvent
impl Debug for HistoryTrackerNeighborEvent
Source§impl<D> Decode<HistoryTrackerNeighborEvent, D> for HistoryTrackerNeighborEventwhere
D: ResourceDialect,
impl<D> Decode<HistoryTrackerNeighborEvent, D> for HistoryTrackerNeighborEventwhere
D: ResourceDialect,
Source§fn new_empty() -> HistoryTrackerNeighborEvent
fn new_empty() -> HistoryTrackerNeighborEvent
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<HistoryTrackerNeighborEvent, D> for HistoryTrackerNeighborEventwhere
D: ResourceDialect,
impl<D> Encode<HistoryTrackerNeighborEvent, D> for HistoryTrackerNeighborEventwhere
D: ResourceDialect,
Source§impl Hash for HistoryTrackerNeighborEvent
impl Hash for HistoryTrackerNeighborEvent
Source§impl Ord for HistoryTrackerNeighborEvent
impl Ord for HistoryTrackerNeighborEvent
Source§fn cmp(&self, other: &HistoryTrackerNeighborEvent) -> Ordering
fn cmp(&self, other: &HistoryTrackerNeighborEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for HistoryTrackerNeighborEvent
impl PartialOrd for HistoryTrackerNeighborEvent
Source§impl TypeMarker for HistoryTrackerNeighborEvent
impl TypeMarker for HistoryTrackerNeighborEvent
Source§type Owned = HistoryTrackerNeighborEvent
type Owned = HistoryTrackerNeighborEvent
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for HistoryTrackerNeighborEvent
impl ValueTypeMarker for HistoryTrackerNeighborEvent
Source§type Borrowed<'a> = HistoryTrackerNeighborEvent
type Borrowed<'a> = HistoryTrackerNeighborEvent
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<HistoryTrackerNeighborEvent as TypeMarker>::Owned,
) -> <HistoryTrackerNeighborEvent as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<HistoryTrackerNeighborEvent as TypeMarker>::Owned, ) -> <HistoryTrackerNeighborEvent as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for HistoryTrackerNeighborEvent
impl Eq for HistoryTrackerNeighborEvent
impl StructuralPartialEq for HistoryTrackerNeighborEvent
Auto Trait Implementations§
impl Freeze for HistoryTrackerNeighborEvent
impl RefUnwindSafe for HistoryTrackerNeighborEvent
impl Send for HistoryTrackerNeighborEvent
impl Sync for HistoryTrackerNeighborEvent
impl Unpin for HistoryTrackerNeighborEvent
impl UnsafeUnpin for HistoryTrackerNeighborEvent
impl UnwindSafe for HistoryTrackerNeighborEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more