Skip to main content

Dispatcher

Struct Dispatcher 

Source
pub struct Dispatcher<'d, P, T, W>
where P: Application<Wire = W> + DateHost + TimerHost<'d>, T: Transport, W: Wire,
{ pub inner: Listener<0, P, Bundle<T, W, Throughput>>, pub date: Updater<1>, pub timer: Timer<{ crate::timer::SARK_TIMER_ID }>, pub _ph: PhantomData<&'d ()>, }

Fields§

§inner: Listener<0, P, Bundle<T, W, Throughput>>§date: Updater<1>§timer: Timer<{ crate::timer::SARK_TIMER_ID }>§_ph: PhantomData<&'d ()>

Implementations§

Source§

impl<'d, P, T, W> Dispatcher<'d, P, T, W>
where P: Application<Wire = W> + DateHost + TimerHost<'d>, T: Transport, W: Wire,

Source

pub const INNER_ROUTE: u8 = <Listener<0, P, Bundle<T, W, Throughput>> as ::dope::manifold::Manifold>::ID

Source

pub const DATE_ROUTE: u8 = <Updater<1> as ::dope::manifold::Manifold>::ID

Source

pub const TIMER_ROUTE: u8 = <Timer<{ crate::timer::SARK_TIMER_ID }> as ::dope::manifold::Manifold>::ID

Source§

impl<'d, P, T, W> Dispatcher<'d, P, T, W>
where P: Application<Wire = W> + DateHost + TimerHost<'d>, T: Transport, W: Wire,

Source

pub fn inner_handle<'__d>( self: Pin<&mut Self>, ) -> Holding<'__d, Listener<0, P, Bundle<T, W, Throughput>>>
where Self: '__d,

Source

pub fn date_handle<'__d>(self: Pin<&mut Self>) -> Holding<'__d, Updater<1>>
where Self: '__d,

Source

pub fn timer_handle<'__d>( self: Pin<&mut Self>, ) -> Holding<'__d, Timer<{ crate::timer::SARK_TIMER_ID }>>
where Self: '__d,

Trait Implementations§

Source§

impl<'d, P, T, W> Dispatcher for Dispatcher<'d, P, T, W>
where P: Application<Wire = W> + DateHost + TimerHost<'d>, T: Transport, W: Wire,

Source§

fn dispatch(self: Pin<&mut Self>, __ev: Event, __driver: &mut Driver)

Source§

fn on_wake(self: Pin<&mut Self>, __target: Token, __driver: &mut Driver)

Source§

fn pre_park(self: Pin<&mut Self>, __driver: &mut Driver)

Source§

fn idle(self: Pin<&Self>) -> Idle

Source§

fn on_shutdown(self: Pin<&mut Self>, __driver: &mut Driver)

Source§

const SHUTDOWN_DRAIN: Duration = _

Source§

impl<'pin, 'd, P, T, W> Unpin for Dispatcher<'d, P, T, W>
where P: Application<Wire = W> + DateHost + TimerHost<'d>, T: Transport, W: Wire, PinnedFieldsOf<__Dispatcher<'pin, 'd, P, T, W>>: Unpin,

Auto Trait Implementations§

§

impl<'d, P, T, W> !RefUnwindSafe for Dispatcher<'d, P, T, W>

§

impl<'d, P, T, W> !Send for Dispatcher<'d, P, T, W>

§

impl<'d, P, T, W> !Sync for Dispatcher<'d, P, T, W>

§

impl<'d, P, T, W> !UnwindSafe for Dispatcher<'d, P, T, W>

§

impl<'d, P, T, W> Freeze for Dispatcher<'d, P, T, W>
where P: Freeze, <W as Wire>::InitConfig: Freeze, <T as Transport>::StreamOpts: Freeze,

§

impl<'d, P, T, W> UnsafeUnpin for Dispatcher<'d, P, T, W>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.