pub struct IdleTimeout(/* private fields */);
Expand description
The idle timeout value of a TcpKeepalive
option.
This value is a u16
carrying a time in units of 100 milliseconds. The
type provides means to conver the value into its raw u16
value or into
a Duration
value.
Trait Implementations§
source§impl Clone for IdleTimeout
impl Clone for IdleTimeout
source§fn clone(&self) -> IdleTimeout
fn clone(&self) -> IdleTimeout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IdleTimeout
impl Debug for IdleTimeout
source§impl Display for IdleTimeout
impl Display for IdleTimeout
source§impl From<IdleTimeout> for Duration
impl From<IdleTimeout> for Duration
source§fn from(src: IdleTimeout) -> Self
fn from(src: IdleTimeout) -> Self
Converts to this type from the input type.
source§impl From<IdleTimeout> for u16
impl From<IdleTimeout> for u16
source§fn from(src: IdleTimeout) -> u16
fn from(src: IdleTimeout) -> u16
Converts to this type from the input type.
source§impl From<u16> for IdleTimeout
impl From<u16> for IdleTimeout
source§impl Hash for IdleTimeout
impl Hash for IdleTimeout
source§impl Ord for IdleTimeout
impl Ord for IdleTimeout
source§fn cmp(&self, other: &IdleTimeout) -> Ordering
fn cmp(&self, other: &IdleTimeout) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for IdleTimeout
impl PartialEq for IdleTimeout
source§fn eq(&self, other: &IdleTimeout) -> bool
fn eq(&self, other: &IdleTimeout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IdleTimeout
impl PartialOrd for IdleTimeout
source§fn partial_cmp(&self, other: &IdleTimeout) -> Option<Ordering>
fn partial_cmp(&self, other: &IdleTimeout) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<Duration> for IdleTimeout
impl TryFrom<Duration> for IdleTimeout
impl Copy for IdleTimeout
impl Eq for IdleTimeout
impl StructuralPartialEq for IdleTimeout
Auto Trait Implementations§
impl Freeze for IdleTimeout
impl RefUnwindSafe for IdleTimeout
impl Send for IdleTimeout
impl Sync for IdleTimeout
impl Unpin for IdleTimeout
impl UnwindSafe for IdleTimeout
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
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.