pub enum DispatchItem<U: Encoder + Decoder> {
Item(<U as Decoder>::Item),
WBackPressureEnabled,
WBackPressureDisabled,
KeepAliveTimeout,
ReadTimeout,
DecoderError(<U as Decoder>::Error),
EncoderError(<U as Encoder>::Error),
Disconnect(Option<Error>),
}
Expand description
Dispatcher item
Variants§
Item(<U as Decoder>::Item)
WBackPressureEnabled
Write back-pressure enabled
WBackPressureDisabled
Write back-pressure disabled
KeepAliveTimeout
Keep alive timeout
ReadTimeout
Frame read timeout
DecoderError(<U as Decoder>::Error)
Decoder parse error
EncoderError(<U as Encoder>::Error)
Encoder parse error
Disconnect(Option<Error>)
Socket is disconnected
Trait Implementations§
Auto Trait Implementations§
impl<U> Freeze for DispatchItem<U>
impl<U> !RefUnwindSafe for DispatchItem<U>
impl<U> Send for DispatchItem<U>
impl<U> Sync for DispatchItem<U>
impl<U> Unpin for DispatchItem<U>
impl<U> !UnwindSafe for DispatchItem<U>
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