Enum netstack3_core::device_socket::Frame
source · pub enum Frame<B> {
Sent(SentFrame<B>),
Received(ReceivedFrame<B>),
}
Expand description
A frame sent or received on a device
Variants§
Implementations§
Trait Implementations§
source§impl<B> From<ReceivedFrame<B>> for Frame<B>
impl<B> From<ReceivedFrame<B>> for Frame<B>
source§fn from(value: ReceivedFrame<B>) -> Self
fn from(value: ReceivedFrame<B>) -> Self
Converts to this type from the input type.
source§impl<B: PartialEq> PartialEq for Frame<B>
impl<B: PartialEq> PartialEq for Frame<B>
impl<B: Copy> Copy for Frame<B>
impl<B: Eq> Eq for Frame<B>
impl<B> StructuralPartialEq for Frame<B>
Auto Trait Implementations§
impl<B> Freeze for Frame<B>where
B: Freeze,
impl<B> RefUnwindSafe for Frame<B>where
B: RefUnwindSafe,
impl<B> Send for Frame<B>where
B: Send,
impl<B> Sync for Frame<B>where
B: Sync,
impl<B> Unpin for Frame<B>where
B: Unpin,
impl<B> UnwindSafe for Frame<B>where
B: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.