pub enum BlackholeDevice {}
Expand description
Blackhole device domain.
Trait Implementations§
Source§impl Clone for BlackholeDevice
impl Clone for BlackholeDevice
Source§fn clone(&self) -> BlackholeDevice
fn clone(&self) -> BlackholeDevice
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 DeviceStateSpec for BlackholeDevice
impl DeviceStateSpec for BlackholeDevice
Source§const IS_LOOPBACK: bool = false
const IS_LOOPBACK: bool = false
Marker for loopback devices.
Source§const DEBUG_TYPE: &'static str = "Blackhole"
const DEBUG_TYPE: &'static str = "Blackhole"
Marker used to print debug information for device identifiers.
Source§type State<BT: DeviceLayerTypes> = BlackholeDeviceState
type State<BT: DeviceLayerTypes> = BlackholeDeviceState
The device state.
Source§type External<BT: DeviceLayerTypes> = <BT as DeviceLayerStateTypes>::BlackholeDeviceState
type External<BT: DeviceLayerTypes> = <BT as DeviceLayerStateTypes>::BlackholeDeviceState
The external (bindings) state.
Source§type CreationProperties = ()
type CreationProperties = ()
Properties given to device creation.
Source§type Counters = BlackholeDeviceCounters
type Counters = BlackholeDeviceCounters
Device-specific counters.
Source§type TimerId<D: WeakDeviceIdentifier> = Infallible
type TimerId<D: WeakDeviceIdentifier> = Infallible
The timer identifier required by this device state.
Source§fn new_device_state<CC: CoreTimerContext<Self::TimerId<CC::WeakDeviceId>, BC> + DeviceIdContext<Self>, BC: DeviceLayerTypes + TimerContext>(
_bindings_ctx: &mut BC,
_self_id: CC::WeakDeviceId,
_properties: Self::CreationProperties,
) -> Self::State<BC>
fn new_device_state<CC: CoreTimerContext<Self::TimerId<CC::WeakDeviceId>, BC> + DeviceIdContext<Self>, BC: DeviceLayerTypes + TimerContext>( _bindings_ctx: &mut BC, _self_id: CC::WeakDeviceId, _properties: Self::CreationProperties, ) -> Self::State<BC>
Creates a new device state from the given properties.
impl Copy for BlackholeDevice
impl Device for BlackholeDevice
Auto Trait Implementations§
impl Freeze for BlackholeDevice
impl RefUnwindSafe for BlackholeDevice
impl Send for BlackholeDevice
impl Sync for BlackholeDevice
impl Unpin for BlackholeDevice
impl UnwindSafe for BlackholeDevice
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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