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> StructuralEq for Frame<B>
impl<B> StructuralPartialEq for Frame<B>
Auto Trait Implementations§
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