pub struct DispatchRuntime<T> {
pub to_send: CorroSender<(T, Bytes)>,
pub to_schedule: CorroSender<(Duration, Timer<T>)>,
pub notifications: CorroSender<OwnedNotification<T>>,
pub active: bool,
pub buf: BytesMut,
}Fields§
§to_send: CorroSender<(T, Bytes)>§to_schedule: CorroSender<(Duration, Timer<T>)>§notifications: CorroSender<OwnedNotification<T>>§active: bool§buf: BytesMutImplementations§
Source§impl<T> DispatchRuntime<T>
impl<T> DispatchRuntime<T>
pub fn new( to_send: CorroSender<(T, Bytes)>, to_schedule: CorroSender<(Duration, Timer<T>)>, notifications: CorroSender<OwnedNotification<T>>, ) -> Self
Trait Implementations§
Source§impl<T: Identity> Runtime<T> for DispatchRuntime<T>
impl<T: Identity> Runtime<T> for DispatchRuntime<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for DispatchRuntime<T>
impl<T> !UnwindSafe for DispatchRuntime<T>
impl<T> Freeze for DispatchRuntime<T>where
CorroSender<(T, Bytes)>: Freeze,
CorroSender<(Duration, Timer<T>)>: Freeze,
CorroSender<OwnedNotification<T>>: Freeze,
impl<T> Send for DispatchRuntime<T>where
CorroSender<(T, Bytes)>: Send,
CorroSender<(Duration, Timer<T>)>: Send,
CorroSender<OwnedNotification<T>>: Send,
impl<T> Sync for DispatchRuntime<T>where
CorroSender<(T, Bytes)>: Sync,
CorroSender<(Duration, Timer<T>)>: Sync,
CorroSender<OwnedNotification<T>>: Sync,
impl<T> Unpin for DispatchRuntime<T>where
CorroSender<(T, Bytes)>: Unpin,
CorroSender<(Duration, Timer<T>)>: Unpin,
CorroSender<OwnedNotification<T>>: Unpin,
impl<T> UnsafeUnpin for DispatchRuntime<T>where
CorroSender<(T, Bytes)>: UnsafeUnpin,
CorroSender<(Duration, Timer<T>)>: UnsafeUnpin,
CorroSender<OwnedNotification<T>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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