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
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,
<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,
<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,
<U as Decoder>::Error: Unpin,
<U as Encoder>::Error: Unpin,
<U as Decoder>::Item: Unpin,
impl<U> !UnwindSafe for DispatchItem<U>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self