pub enum PingError {
BadParameter(&'static str),
OsError(u32, String),
IpError(Type),
TimedOut,
IoPending,
DataSizeTooBig(usize),
}
Expand description
Ping errors
Variants§
BadParameter(&'static str)
Bad request parameters
OsError(u32, String)
Unspecific OS errors
IpError(Type)
General Ping errors
TimedOut
Ping timed out
IoPending
I/O async pending
DataSizeTooBig(usize)
size of data buffer for ping is too big. The first parameter is the maximum allowed size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PingError
impl RefUnwindSafe for PingError
impl Send for PingError
impl Sync for PingError
impl Unpin for PingError
impl UnwindSafe for PingError
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