pub enum PingProtocolError {
Crate(&'static str, String),
Message(String),
ConnectError(ConnectError),
InvalidNonce(u64, u64),
PingProtocolMissing(SocketAddr),
SendError(SendError),
}Variants§
Crate(&'static str, String)
Message(String)
ConnectError(ConnectError)
InvalidNonce(u64, u64)
PingProtocolMissing(SocketAddr)
SendError(SendError)
Trait Implementations§
Source§impl Debug for PingProtocolError
impl Debug for PingProtocolError
Source§impl Display for PingProtocolError
impl Display for PingProtocolError
Source§impl Error for PingProtocolError
impl Error for PingProtocolError
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<ConnectError> for PingProtocolError
impl From<ConnectError> for PingProtocolError
Source§fn from(error: ConnectError) -> Self
fn from(error: ConnectError) -> Self
Converts to this type from the input type.
Source§impl From<PingProtocolError> for ServerError
impl From<PingProtocolError> for ServerError
Source§fn from(error: PingProtocolError) -> Self
fn from(error: PingProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PingProtocolError
impl !RefUnwindSafe for PingProtocolError
impl Send for PingProtocolError
impl Sync for PingProtocolError
impl Unpin for PingProtocolError
impl !UnwindSafe for PingProtocolError
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