pub struct InvalidHopLimit;Expand description
A hop limit of zero was given. A packet must not be sent with one.
Returned by the set_hop_limit method of the UDP and TCP sockets.
Trait Implementations§
Source§impl Clone for InvalidHopLimit
impl Clone for InvalidHopLimit
Source§fn clone(&self) -> InvalidHopLimit
fn clone(&self) -> InvalidHopLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvalidHopLimit
Source§impl Debug for InvalidHopLimit
impl Debug for InvalidHopLimit
Source§impl Display for InvalidHopLimit
Available on crate features tcp or udp only.
impl Display for InvalidHopLimit
Available on crate features
tcp or udp only.impl Eq for InvalidHopLimit
Source§impl Error for InvalidHopLimit
Available on crate features tcp or udp only.
impl Error for InvalidHopLimit
Available on crate features
tcp or udp only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl PartialEq for InvalidHopLimit
impl PartialEq for InvalidHopLimit
impl StructuralPartialEq for InvalidHopLimit
Auto Trait Implementations§
impl Freeze for InvalidHopLimit
impl RefUnwindSafe for InvalidHopLimit
impl Send for InvalidHopLimit
impl Sync for InvalidHopLimit
impl Unpin for InvalidHopLimit
impl UnsafeUnpin for InvalidHopLimit
impl UnwindSafe for InvalidHopLimit
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