pub enum Reason<U>{
Service,
Io(Option<Error>),
Encoder(<U as Encoder>::Error),
Decoder(<U as Decoder>::Error),
KeepAlive,
ReadTimeout,
WriteTimeout,
}Expand description
Reason a dispatcher is stopping.
Variants§
Service
Service error
Io(Option<Error>)
The transport disconnected.
The value contains the underlying I/O error when one was available.
If the peer closed its side cleanly while undecodable bytes were left
in the read buffer, the stream was truncated and the value contains an
io::ErrorKind::UnexpectedEof error.
Encoder(<U as Encoder>::Error)
A service response could not be encoded.
Decoder(<U as Decoder>::Error)
Incoming bytes could not be decoded.
KeepAlive
The connection exceeded its keep-alive timeout.
ReadTimeout
A complete frame was not received within the configured read deadline.
WriteTimeout
Write backpressure stayed enabled for longer than the configured write timeout.
Trait Implementations§
Auto Trait Implementations§
impl<U> !RefUnwindSafe for Reason<U>
impl<U> !UnwindSafe for Reason<U>
impl<U> Freeze for Reason<U>
impl<U> Send for Reason<U>
impl<U> Sync for Reason<U>
impl<U> Unpin for Reason<U>
impl<U> UnsafeUnpin for Reason<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