pub enum DispatchItem<U>{
Item(<U as Decoder>::Item),
Control(Control),
Stop(Reason<U>),
}Expand description
Event delivered to the dispatcher service.
Variants§
Item(<U as Decoder>::Item)
A frame decoded from the transport.
Control(Control)
A transport flow-control notification.
Stop(Reason<U>)
The dispatcher is stopping for the specified reason.
Trait Implementations§
Auto Trait Implementations§
impl<U> !RefUnwindSafe for DispatchItem<U>
impl<U> !UnwindSafe for DispatchItem<U>
impl<U> Freeze for DispatchItem<U>
impl<U> Send for DispatchItem<U>
impl<U> Sync for DispatchItem<U>
impl<U> Unpin for DispatchItem<U>
impl<U> UnsafeUnpin for DispatchItem<U>where
<U as Decoder>::Item: UnsafeUnpin,
<U as Encoder>::Error: UnsafeUnpin,
<U as Decoder>::Error: UnsafeUnpin,
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