pub enum ConnectionCloseErrorCode {
TransportError(TransportError),
ApplicationError(ApplicationError),
Value(u64),
}Variants§
Trait Implementations§
Source§impl Clone for ConnectionCloseErrorCode
impl Clone for ConnectionCloseErrorCode
Source§fn clone(&self) -> ConnectionCloseErrorCode
fn clone(&self) -> ConnectionCloseErrorCode
Returns a copy 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 ConnectionCloseErrorCode
impl Debug for ConnectionCloseErrorCode
Source§impl<'de> Deserialize<'de> for ConnectionCloseErrorCode
impl<'de> Deserialize<'de> for ConnectionCloseErrorCode
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<ApplicationError> for ConnectionCloseErrorCode
impl From<ApplicationError> for ConnectionCloseErrorCode
Source§fn from(value: ApplicationError) -> Self
fn from(value: ApplicationError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for ConnectionCloseErrorCode
impl From<TransportError> for ConnectionCloseErrorCode
Source§fn from(value: TransportError) -> Self
fn from(value: TransportError) -> Self
Converts to this type from the input type.
Source§impl From<u64> for ConnectionCloseErrorCode
impl From<u64> for ConnectionCloseErrorCode
Source§impl PartialEq for ConnectionCloseErrorCode
impl PartialEq for ConnectionCloseErrorCode
Source§impl Serialize for ConnectionCloseErrorCode
impl Serialize for ConnectionCloseErrorCode
impl Copy for ConnectionCloseErrorCode
impl Eq for ConnectionCloseErrorCode
impl StructuralPartialEq for ConnectionCloseErrorCode
Auto Trait Implementations§
impl Freeze for ConnectionCloseErrorCode
impl RefUnwindSafe for ConnectionCloseErrorCode
impl Send for ConnectionCloseErrorCode
impl Sync for ConnectionCloseErrorCode
impl Unpin for ConnectionCloseErrorCode
impl UnwindSafe for ConnectionCloseErrorCode
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