pub struct TcpKeepalive(_);
Implementations§
Trait Implementations§
source§impl Clone for TcpKeepalive
impl Clone for TcpKeepalive
source§fn clone(&self) -> TcpKeepalive
fn clone(&self) -> TcpKeepalive
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 CodeOptData for TcpKeepalive
impl CodeOptData for TcpKeepalive
source§const CODE: OptionCode = OptionCode::TcpKeepalive
const CODE: OptionCode = OptionCode::TcpKeepalive
The option code for this option.
source§impl Compose for TcpKeepalive
impl Compose for TcpKeepalive
source§impl Debug for TcpKeepalive
impl Debug for TcpKeepalive
source§impl<Octets> From<TcpKeepalive> for AllOptData<Octets>
impl<Octets> From<TcpKeepalive> for AllOptData<Octets>
source§fn from(value: TcpKeepalive) -> Self
fn from(value: TcpKeepalive) -> Self
Converts to this type from the input type.
source§impl Hash for TcpKeepalive
impl Hash for TcpKeepalive
source§impl Ord for TcpKeepalive
impl Ord for TcpKeepalive
source§fn cmp(&self, other: &TcpKeepalive) -> Ordering
fn cmp(&self, other: &TcpKeepalive) -> 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<TcpKeepalive> for TcpKeepalive
impl PartialEq<TcpKeepalive> for TcpKeepalive
source§fn eq(&self, other: &TcpKeepalive) -> bool
fn eq(&self, other: &TcpKeepalive) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TcpKeepalive> for TcpKeepalive
impl PartialOrd<TcpKeepalive> for TcpKeepalive
source§fn partial_cmp(&self, other: &TcpKeepalive) -> Option<Ordering>
fn partial_cmp(&self, other: &TcpKeepalive) -> 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 moreimpl Copy for TcpKeepalive
impl Eq for TcpKeepalive
impl StructuralEq for TcpKeepalive
impl StructuralPartialEq for TcpKeepalive
Auto Trait Implementations§
impl RefUnwindSafe for TcpKeepalive
impl Send for TcpKeepalive
impl Sync for TcpKeepalive
impl Unpin for TcpKeepalive
impl UnwindSafe for TcpKeepalive
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>,
source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.
source§impl<T> OptData for Twhere
T: CodeOptData + Compose,
impl<T> OptData for Twhere T: CodeOptData + Compose,
source§fn code(&self) -> OptionCode
fn code(&self) -> OptionCode
Returns the option code associated with this option.
source§impl<Octets, T> ParseOptData<Octets> for Twhere
Octets: AsRef<[u8]>,
T: CodeOptData + Parse<Octets> + Compose,
impl<Octets, T> ParseOptData<Octets> for Twhere Octets: AsRef<[u8]>, T: CodeOptData + Parse<Octets> + Compose,
source§fn parse_option(
code: OptionCode,
parser: &mut Parser<Octets>
) -> Result<Option<T>, ParseError>
fn parse_option( code: OptionCode, parser: &mut Parser<Octets> ) -> Result<Option<T>, ParseError>
Parses the option code data. Read more