pub enum ConnectionCode {
TransportError(TransportError),
CryptoError(CryptoError),
Value(u32),
}Variants§
Trait Implementations§
Source§impl Clone for ConnectionCode
impl Clone for ConnectionCode
Source§fn clone(&self) -> ConnectionCode
fn clone(&self) -> ConnectionCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionCode
impl Debug for ConnectionCode
Source§impl<'de> Deserialize<'de> for ConnectionCode
impl<'de> Deserialize<'de> for ConnectionCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConnectionCode> for ConnectionCloseErrorCode
impl From<ConnectionCode> for ConnectionCloseErrorCode
Source§fn from(value: ConnectionCode) -> Self
fn from(value: ConnectionCode) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionCode> for ConnectionCode
impl From<ConnectionCode> for ConnectionCode
Source§fn from(value: ConnectionCode) -> Self
fn from(value: ConnectionCode) -> Self
Converts to this type from the input type.
Source§impl From<CryptoError> for ConnectionCode
impl From<CryptoError> for ConnectionCode
Source§fn from(value: CryptoError) -> Self
fn from(value: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<ErrorKind> for ConnectionCode
impl From<ErrorKind> for ConnectionCode
Source§impl From<TransportError> for ConnectionCode
impl From<TransportError> for ConnectionCode
Source§fn from(value: TransportError) -> Self
fn from(value: TransportError) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ConnectionCode
impl From<u32> for ConnectionCode
Source§impl PartialEq for ConnectionCode
impl PartialEq for ConnectionCode
Source§impl Serialize for ConnectionCode
impl Serialize for ConnectionCode
impl Copy for ConnectionCode
impl Eq for ConnectionCode
impl StructuralPartialEq for ConnectionCode
Auto Trait Implementations§
impl Freeze for ConnectionCode
impl RefUnwindSafe for ConnectionCode
impl Send for ConnectionCode
impl Sync for ConnectionCode
impl Unpin for ConnectionCode
impl UnsafeUnpin for ConnectionCode
impl UnwindSafe for ConnectionCode
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