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§impl PartialOrd for IdleTimeout
impl PartialOrd for IdleTimeout
source§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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.