Enum ntex::io::DispatchItem [−][src]
pub enum DispatchItem<U> where
U: Encoder + Decoder, {
Item(<U as Decoder>::Item),
WBackPressureEnabled,
WBackPressureDisabled,
KeepAliveTimeout,
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
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> !RefUnwindSafe for DispatchItem<U>
impl<U> Send for DispatchItem<U> where
<U as Decoder>::Error: Send,
<U as Encoder>::Error: Send,
<U as Decoder>::Item: Send,
impl<U> Sync for DispatchItem<U> where
<U as Decoder>::Error: Sync,
<U as Encoder>::Error: Sync,
<U as Decoder>::Item: Sync,
impl<U> Unpin for DispatchItem<U> where
<U as Decoder>::Error: Unpin,
<U as Encoder>::Error: Unpin,
<U as Decoder>::Item: Unpin,
impl<U> !UnwindSafe for DispatchItem<U>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more