pub enum ReceivedFrame<B> {
Ethernet {
destination: FrameDestination,
frame: EthernetFrame<B>,
},
Ip(IpFrame<B>),
}
Expand description
A frame received on a device.
Variants§
Ethernet
An ethernet frame received on a device.
Fields
§
destination: FrameDestination
Where the frame was destined.
§
frame: EthernetFrame<B>
The parsed ethernet frame.
Ip(IpFrame<B>)
An IP frame received on a device.
Note that this is not an IP packet within an Ethernet Frame. This is an IP packet received directly from the device (e.g. a pure IP device).
Trait Implementations§
source§impl<B: Clone> Clone for ReceivedFrame<B>
impl<B: Clone> Clone for ReceivedFrame<B>
source§fn clone(&self) -> ReceivedFrame<B>
fn clone(&self) -> ReceivedFrame<B>
Returns a copy 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<B: Debug> Debug for ReceivedFrame<B>
impl<B: Debug> Debug for ReceivedFrame<B>
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 ReceivedFrame<B>
impl<B: PartialEq> PartialEq for ReceivedFrame<B>
source§fn eq(&self, other: &ReceivedFrame<B>) -> bool
fn eq(&self, other: &ReceivedFrame<B>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<B: Copy> Copy for ReceivedFrame<B>
impl<B: Eq> Eq for ReceivedFrame<B>
impl<B> StructuralPartialEq for ReceivedFrame<B>
Auto Trait Implementations§
impl<B> Freeze for ReceivedFrame<B>where
B: Freeze,
impl<B> RefUnwindSafe for ReceivedFrame<B>where
B: RefUnwindSafe,
impl<B> Send for ReceivedFrame<B>where
B: Send,
impl<B> Sync for ReceivedFrame<B>where
B: Sync,
impl<B> Unpin for ReceivedFrame<B>where
B: Unpin,
impl<B> UnwindSafe for ReceivedFrame<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.