pub enum SurgeError {
IncorrectBufferSize,
MalformedPacket(MalformedPacketError),
IOError(Error),
Timeout {
seq: PingSequence,
},
EchoRequestPacket,
NetworkError,
IdenticalRequests {
host: IpAddr,
ident: Option<PingIdentifier>,
seq: PingSequence,
},
ClientDestroyed,
}Expand description
An error resulting from a ping option-setting or send/receive operation.
Variants§
IncorrectBufferSize
MalformedPacket(MalformedPacketError)
IOError(Error)
Timeout
Fields
§
seq: PingSequenceEchoRequestPacket
NetworkError
IdenticalRequests
ClientDestroyed
Trait Implementations§
Source§impl Debug for SurgeError
impl Debug for SurgeError
Source§impl Display for SurgeError
impl Display for SurgeError
Source§impl Error for SurgeError
impl Error for SurgeError
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()
Auto Trait Implementations§
impl Freeze for SurgeError
impl !RefUnwindSafe for SurgeError
impl Send for SurgeError
impl Sync for SurgeError
impl Unpin for SurgeError
impl !UnwindSafe for SurgeError
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