pub enum ProtocolIdError {
InvalidHeader,
Incompatible,
Unknown,
Unexpected {
exp: ProtocolId,
got: ProtocolId,
},
}Variants§
Trait Implementations§
Source§impl Clone for ProtocolIdError
impl Clone for ProtocolIdError
Source§fn clone(&self) -> ProtocolIdError
fn clone(&self) -> ProtocolIdError
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 ProtocolIdError
impl Debug for ProtocolIdError
Source§impl Display for ProtocolIdError
impl Display for ProtocolIdError
Source§impl Error for ProtocolIdError
impl Error for ProtocolIdError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ProtocolIdError> for ConnectError
impl From<ProtocolIdError> for ConnectError
Source§fn from(source: ProtocolIdError) -> Self
fn from(source: ProtocolIdError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolIdError> for HandshakeError
impl From<ProtocolIdError> for HandshakeError
Source§fn from(value: ProtocolIdError) -> Self
fn from(value: ProtocolIdError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtocolIdError
impl RefUnwindSafe for ProtocolIdError
impl Send for ProtocolIdError
impl Sync for ProtocolIdError
impl Unpin for ProtocolIdError
impl UnsafeUnpin for ProtocolIdError
impl UnwindSafe for ProtocolIdError
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