Enum ntex_io::DispatchItem
source · pub enum DispatchItem<U: Encoder + Decoder> {
Item(<U as Decoder>::Item),
WBackPressureEnabled,
WBackPressureDisabled,
KeepAliveTimeout,
DecoderError(<U as Decoder>::Error),
EncoderError(<U as Encoder>::Error),
Disconnect(Option<IoError>),
}
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<IoError>)
Socket is disconnected