pub enum BenignClose {
Idle,
PeerClosed,
}Expand description
How a connection ended, when it ended with an error not worth a warning.
Variants§
Idle
The peer went silent and the idle timeout expired.
PeerClosed
The peer closed the connection cleanly, without an error code.
Trait Implementations§
Source§impl Clone for BenignClose
impl Clone for BenignClose
Source§fn clone(&self) -> BenignClose
fn clone(&self) -> BenignClose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BenignClose
Source§impl Debug for BenignClose
impl Debug for BenignClose
impl Eq for BenignClose
Source§impl PartialEq for BenignClose
impl PartialEq for BenignClose
Source§fn eq(&self, other: &BenignClose) -> bool
fn eq(&self, other: &BenignClose) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BenignClose
Auto Trait Implementations§
impl Freeze for BenignClose
impl RefUnwindSafe for BenignClose
impl Send for BenignClose
impl Sync for BenignClose
impl Unpin for BenignClose
impl UnsafeUnpin for BenignClose
impl UnwindSafe for BenignClose
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