pub enum ConnectionError {
Transport(TransportError),
PeerTransport {
code: u64,
frame_type: u64,
reason: Vec<u8>,
},
PeerApplication {
code: u64,
reason: Vec<u8>,
},
LocalApplication {
code: u64,
},
IdleTimeout,
StatelessReset,
VersionMismatch,
}Expand description
Why a connection ended.
Variants§
Transport(TransportError)
We closed it because of a transport error.
PeerTransport
The peer closed it with a transport error.
PeerApplication
The peer closed it from the application.
LocalApplication
We closed it from the application.
IdleTimeout
StatelessReset
VersionMismatch
The server supports none of our versions.
Trait Implementations§
Source§impl Clone for ConnectionError
impl Clone for ConnectionError
Source§impl Debug for ConnectionError
impl Debug for ConnectionError
impl Eq for ConnectionError
Source§impl PartialEq for ConnectionError
impl PartialEq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations§
impl Forget for ConnectionError
impl Freeze for ConnectionError
impl Move for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnsafeUnpin for ConnectionError
impl UnwindSafe for ConnectionError
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