#[repr(u8)]pub enum HistoryTrackerNetDataEvent {
Added = 0,
Removed = 1,
}Expand description
Enum for Network Data events.
Derived from [otHistoryTrackerNetDataEvent]
(https://openthread.io/reference/group/api-history-tracker#othistorytrackernetdataevent).
Variants§
Implementations§
Source§impl HistoryTrackerNetDataEvent
impl HistoryTrackerNetDataEvent
pub fn from_primitive(prim: u8) -> Option<HistoryTrackerNetDataEvent>
pub const fn into_primitive(self) -> u8
Trait Implementations§
Source§impl Clone for HistoryTrackerNetDataEvent
impl Clone for HistoryTrackerNetDataEvent
Source§fn clone(&self) -> HistoryTrackerNetDataEvent
fn clone(&self) -> HistoryTrackerNetDataEvent
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 HistoryTrackerNetDataEvent
impl Debug for HistoryTrackerNetDataEvent
Source§impl<D> Decode<HistoryTrackerNetDataEvent, D> for HistoryTrackerNetDataEventwhere
D: ResourceDialect,
impl<D> Decode<HistoryTrackerNetDataEvent, D> for HistoryTrackerNetDataEventwhere
D: ResourceDialect,
Source§fn new_empty() -> HistoryTrackerNetDataEvent
fn new_empty() -> HistoryTrackerNetDataEvent
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<HistoryTrackerNetDataEvent, D> for HistoryTrackerNetDataEventwhere
D: ResourceDialect,
impl<D> Encode<HistoryTrackerNetDataEvent, D> for HistoryTrackerNetDataEventwhere
D: ResourceDialect,
Source§impl Hash for HistoryTrackerNetDataEvent
impl Hash for HistoryTrackerNetDataEvent
Source§impl Ord for HistoryTrackerNetDataEvent
impl Ord for HistoryTrackerNetDataEvent
Source§fn cmp(&self, other: &HistoryTrackerNetDataEvent) -> Ordering
fn cmp(&self, other: &HistoryTrackerNetDataEvent) -> 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 HistoryTrackerNetDataEvent
impl PartialOrd for HistoryTrackerNetDataEvent
Source§impl TypeMarker for HistoryTrackerNetDataEvent
impl TypeMarker for HistoryTrackerNetDataEvent
Source§type Owned = HistoryTrackerNetDataEvent
type Owned = HistoryTrackerNetDataEvent
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 HistoryTrackerNetDataEvent
impl ValueTypeMarker for HistoryTrackerNetDataEvent
Source§type Borrowed<'a> = HistoryTrackerNetDataEvent
type Borrowed<'a> = HistoryTrackerNetDataEvent
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: &<HistoryTrackerNetDataEvent as TypeMarker>::Owned,
) -> <HistoryTrackerNetDataEvent as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<HistoryTrackerNetDataEvent as TypeMarker>::Owned, ) -> <HistoryTrackerNetDataEvent as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for HistoryTrackerNetDataEvent
impl Eq for HistoryTrackerNetDataEvent
impl StructuralPartialEq for HistoryTrackerNetDataEvent
Auto Trait Implementations§
impl Freeze for HistoryTrackerNetDataEvent
impl RefUnwindSafe for HistoryTrackerNetDataEvent
impl Send for HistoryTrackerNetDataEvent
impl Sync for HistoryTrackerNetDataEvent
impl Unpin for HistoryTrackerNetDataEvent
impl UnsafeUnpin for HistoryTrackerNetDataEvent
impl UnwindSafe for HistoryTrackerNetDataEvent
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