pub struct ClientSubnet { /* private fields */ }
Implementations§
source§impl ClientSubnet
impl ClientSubnet
pub fn new( source_prefix_len: u8, scope_prefix_len: u8, addr: IpAddr ) -> ClientSubnet
pub fn push<Target: OctetsBuilder + AsRef<[u8]> + AsMut<[u8]>>( builder: &mut OptBuilder<'_, Target>, source_prefix_len: u8, scope_prefix_len: u8, addr: IpAddr ) -> Result<(), ShortBuf>
pub fn source_prefix_len(&self) -> u8
pub fn scope_prefix_len(&self) -> u8
pub fn addr(&self) -> IpAddr
Trait Implementations§
source§impl Clone for ClientSubnet
impl Clone for ClientSubnet
source§fn clone(&self) -> ClientSubnet
fn clone(&self) -> ClientSubnet
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 ClientSubnet
impl CodeOptData for ClientSubnet
source§const CODE: OptionCode = OptionCode::ClientSubnet
const CODE: OptionCode = OptionCode::ClientSubnet
The option code for this option.
source§impl Compose for ClientSubnet
impl Compose for ClientSubnet
source§impl Debug for ClientSubnet
impl Debug for ClientSubnet
source§impl<Octets> From<ClientSubnet> for AllOptData<Octets>
impl<Octets> From<ClientSubnet> for AllOptData<Octets>
source§fn from(value: ClientSubnet) -> Self
fn from(value: ClientSubnet) -> Self
Converts to this type from the input type.
source§impl Hash for ClientSubnet
impl Hash for ClientSubnet
source§impl Ord for ClientSubnet
impl Ord for ClientSubnet
source§fn cmp(&self, other: &ClientSubnet) -> Ordering
fn cmp(&self, other: &ClientSubnet) -> 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<ClientSubnet> for ClientSubnet
impl PartialEq<ClientSubnet> for ClientSubnet
source§fn eq(&self, other: &ClientSubnet) -> bool
fn eq(&self, other: &ClientSubnet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ClientSubnet> for ClientSubnet
impl PartialOrd<ClientSubnet> for ClientSubnet
source§fn partial_cmp(&self, other: &ClientSubnet) -> Option<Ordering>
fn partial_cmp(&self, other: &ClientSubnet) -> 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 ClientSubnet
impl Eq for ClientSubnet
impl StructuralEq for ClientSubnet
impl StructuralPartialEq for ClientSubnet
Auto Trait Implementations§
impl RefUnwindSafe for ClientSubnet
impl Send for ClientSubnet
impl Sync for ClientSubnet
impl Unpin for ClientSubnet
impl UnwindSafe for ClientSubnet
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