pub enum LingerEnd {
Eof,
Deadline,
Unsupported,
Failed(ErrorKind),
}Expand description
How the discard phase of a lingering close ended.
Variants§
Eof
The peer ended its stream; all its remaining input was read and discarded.
Deadline
The linger deadline passed before the peer’s EOF.
Unsupported
The transport cannot half-close, so it closed without lingering.
Failed(ErrorKind)
The half-close, a discard read or the deadline timer failed (for example the peer reset the connection); lingering stopped and the stream closed.
Trait Implementations§
impl Copy for LingerEnd
impl Eq for LingerEnd
impl StructuralPartialEq for LingerEnd
Auto Trait Implementations§
impl Forget for LingerEnd
impl Freeze for LingerEnd
impl RefUnwindSafe for LingerEnd
impl Send for LingerEnd
impl Sync for LingerEnd
impl Unpin for LingerEnd
impl UnsafeUnpin for LingerEnd
impl UnwindSafe for LingerEnd
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