DeviceRuntime

Struct DeviceRuntime 

Source
pub struct DeviceRuntime<M: RawMutex + 'static, const RX: usize, const TX: usize> {
    pub input: &'static InputChannel<M>,
    pub radio: &'static Channels<M, RX, TX>,
    pub ctl: &'static DeviceControl<M>,
    pub out: &'static TransportChannels<M>,
    pub session_gen: &'static AtomicU32,
}
Expand description

The driver’s 'static wiring: the channels and control blocks the loop shares with the board’s transport and radio tasks.

Fields§

§input: &'static InputChannel<M>

Inbound frames and connection edges from every transport task.

§radio: &'static Channels<M, RX, TX>

The session’s radio endpoint — its private virtual Channels bundle served by the board’s radio mux (never the real radio bundle directly).

§ctl: &'static DeviceControl<M>

Runtime radio settings / RSSI sampling into the radio runner.

§out: &'static TransportChannels<M>

Outbound frame queues drained by the transport output tasks.

§session_gen: &'static AtomicU32

Published session epoch, checked by each transport at framing edges (transport_policy::generation_checked).

Auto Trait Implementations§

§

impl<M, const RX: usize, const TX: usize> Freeze for DeviceRuntime<M, RX, TX>

§

impl<M, const RX: usize, const TX: usize> !RefUnwindSafe for DeviceRuntime<M, RX, TX>

§

impl<M, const RX: usize, const TX: usize> Send for DeviceRuntime<M, RX, TX>
where M: Sync,

§

impl<M, const RX: usize, const TX: usize> Sync for DeviceRuntime<M, RX, TX>
where M: Sync,

§

impl<M, const RX: usize, const TX: usize> Unpin for DeviceRuntime<M, RX, TX>

§

impl<M, const RX: usize, const TX: usize> !UnwindSafe for DeviceRuntime<M, RX, TX>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V