pub enum CloseReason {
Closed,
Aborted,
Error(Error),
InputLimit,
Stopped,
}Expand description
Why a connection was closed, passed to Connection::on_close.
Variants§
Closed
Ctx::close after the output was flushed.
Aborted
Ctx::abort: closed at once, unsent output discarded.
Error(Error)
A receive or send failed (often a reset by the peer).
InputLimit
More than max_input bytes were waiting unconsumed.
Stopped
The runtime stopped and the grace period ran out.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CloseReason
impl !UnwindSafe for CloseReason
impl Forget for CloseReason
impl Freeze for CloseReason
impl Move for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnsafeUnpin for CloseReason
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