Enum surge_ping::SurgeError
source · pub enum SurgeError {
IncorrectBufferSize,
MalformedPacket(MalformedPacketError),
IOError(Error),
Timeout {
seq: PingSequence,
},
EchoRequestPacket,
NetworkError,
IdenticalRequests {
host: IpAddr,
ident: Option<PingIdentifier>,
seq: PingSequence,
},
}
Expand description
An error resulting from a ping option-setting or send/receive operation.
Variants§
IncorrectBufferSize
MalformedPacket(MalformedPacketError)
IOError(Error)
Timeout
Fields
§
seq: PingSequence
EchoRequestPacket
NetworkError
IdenticalRequests
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)>
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 !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