pub enum Close {
Connection(ConnectionClose),
Application(ApplicationClose),
}
Expand description
Reason for closing a connection (transport or application)
Variants§
Connection(ConnectionClose)
Transport-layer connection close
Application(ApplicationClose)
Application-layer connection close
Trait Implementations§
Source§impl From<ApplicationClose> for Close
impl From<ApplicationClose> for Close
Source§fn from(x: ApplicationClose) -> Self
fn from(x: ApplicationClose) -> Self
Converts to this type from the input type.
Source§impl From<Close> for ConnectionError
impl From<Close> for ConnectionError
Source§impl From<ConnectionClose> for Close
impl From<ConnectionClose> for Close
Source§fn from(x: ConnectionClose) -> Self
fn from(x: ConnectionClose) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Close
impl RefUnwindSafe for Close
impl Send for Close
impl Sync for Close
impl Unpin for Close
impl UnwindSafe for Close
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