pub enum SessionEnd {
Clean,
ProtocolError,
Timeout,
IoError,
}Expand description
How a session ended. mkit serve maps Self::Clean and
Self::IoError to exit::OK and the rest to exit::PROTOCOL_ERROR.
Variants§
Clean
The client sent Close or closed the stream between frames, or
stop_after_hello was set.
ProtocolError
A failed handshake, an unreadable frame or an exceeded budget. The error frame, if any, was sent first.
Timeout
The source timed out.
IoError
The sink failed while answering a verb.
Trait Implementations§
Source§impl Clone for SessionEnd
impl Clone for SessionEnd
impl Copy for SessionEnd
Source§impl Debug for SessionEnd
impl Debug for SessionEnd
impl Eq for SessionEnd
Source§impl PartialEq for SessionEnd
impl PartialEq for SessionEnd
impl StructuralPartialEq for SessionEnd
Auto Trait Implementations§
impl Freeze for SessionEnd
impl RefUnwindSafe for SessionEnd
impl Send for SessionEnd
impl Sync for SessionEnd
impl Unpin for SessionEnd
impl UnsafeUnpin for SessionEnd
impl UnwindSafe for SessionEnd
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