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: PingSequenceEchoRequestPacket
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()