Enum netstack3_core::device::FrameDestination
source · pub enum FrameDestination {
Individual {
local: bool,
},
Multicast,
Broadcast,
}
Expand description
The type of address used as the source address in a device-layer frame: unicast or broadcast.
FrameDestination
is used to implement RFC 1122 section 3.2.2 and RFC 4443
section 2.4.e, which govern when to avoid sending an ICMP error message for
ICMP and ICMPv6 respectively.
Variants§
Individual
A unicast address - one which is neither multicast nor broadcast.
Multicast
A multicast address; if the addressing scheme supports overlap between
multicast and broadcast, then broadcast addresses should use the
Broadcast
variant.
Broadcast
A broadcast address; if the addressing scheme supports overlap between
multicast and broadcast, then broadcast addresses should use the
Broadcast
variant.
Trait Implementations§
source§impl Clone for FrameDestination
impl Clone for FrameDestination
source§fn clone(&self) -> FrameDestination
fn clone(&self) -> FrameDestination
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 Debug for FrameDestination
impl Debug for FrameDestination
source§impl From<BroadcastAddr<Mac>> for FrameDestination
impl From<BroadcastAddr<Mac>> for FrameDestination
source§fn from(_value: BroadcastAddr<Mac>) -> Self
fn from(_value: BroadcastAddr<Mac>) -> Self
Converts to this type from the input type.
source§impl From<MulticastAddr<Mac>> for FrameDestination
impl From<MulticastAddr<Mac>> for FrameDestination
source§fn from(_value: MulticastAddr<Mac>) -> Self
fn from(_value: MulticastAddr<Mac>) -> Self
Converts to this type from the input type.
source§impl PartialEq for FrameDestination
impl PartialEq for FrameDestination
source§fn eq(&self, other: &FrameDestination) -> bool
fn eq(&self, other: &FrameDestination) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FrameDestination
impl Eq for FrameDestination
impl StructuralEq for FrameDestination
impl StructuralPartialEq for FrameDestination
Auto Trait Implementations§
impl RefUnwindSafe for FrameDestination
impl Send for FrameDestination
impl Sync for FrameDestination
impl Unpin for FrameDestination
impl UnwindSafe for FrameDestination
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