Enum ntex::framed::DispatchItem [−][src]
pub enum DispatchItem<U: Encoder + Decoder> {
Item(<U as Decoder>::Item),
WBackPressureEnabled,
WBackPressureDisabled,
KeepAliveTimeout,
DecoderError(<U as Decoder>::Error),
EncoderError(<U as Encoder>::Error),
IoError(Error),
}
Expand description
Framed transport item
Variants
Write back-pressure enabled
Write back-pressure disabled
Keep alive timeout
Decoder parse error
Encoder parse error
IoError(Error)
Unexpected io error
Tuple Fields of IoError
0: Error
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