Enum surge_ping::SurgeError
source · [−]pub enum SurgeError {
IncorrectBufferSize,
MalformedPacket(MalformedPacketError),
IOError(Error),
Timeout {
seq: PingSequence,
},
EchoRequestPacket,
NetworkError,
IdenticalRequests {
host: IpAddr,
ident: 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
sourceimpl Debug for SurgeError
impl Debug for SurgeError
sourceimpl Display for SurgeError
impl Display for SurgeError
sourceimpl Error for SurgeError
impl Error for SurgeError
sourcefn 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 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more