pub enum PingError {
DestinationHostUnreachable,
InvalidTargetAddress,
InvalidSourceAddress,
SocketSendTimeout,
SocketBindError(BindError),
SocketSendError(SendError),
SocketRecvError(RecvError),
}
Expand description
Error returned by ping()
.
Variants§
DestinationHostUnreachable
The target did not respond.
The packet was sent but the Reply packet has not been recieved
in the timeout set by set_timeout()
.
InvalidTargetAddress
The target has not been specified.
InvalidSourceAddress
The source has not been specified (Ipv6 only).
SocketSendTimeout
The socket could not queue the packet in the buffer.
SocketBindError(BindError)
Container error for icmp::BindError
.
SocketSendError(SendError)
Container error for icmp::SendError
.
SocketRecvError(RecvError)
Container error for icmp::RecvError
.
Trait Implementations§
impl Copy for PingError
impl Eq for PingError
impl StructuralPartialEq for PingError
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