pub enum EthernetLinkDevice {}
Expand description
An implementation of the LinkDevice
trait for Ethernet devices.
Trait Implementations§
Source§impl Clone for EthernetLinkDevice
impl Clone for EthernetLinkDevice
Source§fn clone(&self) -> EthernetLinkDevice
fn clone(&self) -> EthernetLinkDevice
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 EthernetLinkDevice
impl Debug for EthernetLinkDevice
Source§impl DeviceStateSpec for EthernetLinkDevice
impl DeviceStateSpec for EthernetLinkDevice
Source§const IS_LOOPBACK: bool = false
const IS_LOOPBACK: bool = false
Marker for loopback devices.
Source§const DEBUG_TYPE: &'static str = "Ethernet"
const DEBUG_TYPE: &'static str = "Ethernet"
Marker used to print debug information for device identifiers.
Source§type Link<BT: DeviceLayerTypes> = EthernetDeviceState<BT>
type Link<BT: DeviceLayerTypes> = EthernetDeviceState<BT>
The link state.
Source§type External<BT: DeviceLayerTypes> = <BT as DeviceLayerStateTypes>::EthernetDeviceState
type External<BT: DeviceLayerTypes> = <BT as DeviceLayerStateTypes>::EthernetDeviceState
The external (bindings) state.
Source§type CreationProperties = EthernetCreationProperties
type CreationProperties = EthernetCreationProperties
Properties given to device creation.
Source§type Counters = EthernetDeviceCounters
type Counters = EthernetDeviceCounters
Device-specific counters.
Source§type TimerId<D: WeakDeviceIdentifier> = EthernetTimerId<D>
type TimerId<D: WeakDeviceIdentifier> = EthernetTimerId<D>
The timer identifier required by this device state.
Source§fn new_link_state<CC: CoreTimerContext<Self::TimerId<CC::WeakDeviceId>, BC> + DeviceIdContext<Self>, BC: DeviceLayerTypes + TimerContext>(
bindings_ctx: &mut BC,
self_id: CC::WeakDeviceId,
_: Self::CreationProperties,
) -> Self::Link<BC>
fn new_link_state<CC: CoreTimerContext<Self::TimerId<CC::WeakDeviceId>, BC> + DeviceIdContext<Self>, BC: DeviceLayerTypes + TimerContext>( bindings_ctx: &mut BC, self_id: CC::WeakDeviceId, _: Self::CreationProperties, ) -> Self::Link<BC>
Creates a new link state from the given properties.
Source§impl Hash for EthernetLinkDevice
impl Hash for EthernetLinkDevice
Source§impl LinkDevice for EthernetLinkDevice
impl LinkDevice for EthernetLinkDevice
Source§impl PartialEq for EthernetLinkDevice
impl PartialEq for EthernetLinkDevice
impl Copy for EthernetLinkDevice
impl Device for EthernetLinkDevice
impl Eq for EthernetLinkDevice
impl StructuralPartialEq for EthernetLinkDevice
Auto Trait Implementations§
impl Freeze for EthernetLinkDevice
impl RefUnwindSafe for EthernetLinkDevice
impl Send for EthernetLinkDevice
impl Sync for EthernetLinkDevice
impl Unpin for EthernetLinkDevice
impl UnwindSafe for EthernetLinkDevice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more