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( builder: &mut OptBuilder, 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
const CODE: OptionCode = OptionCode::ClientSubnet
Source§impl Compose for ClientSubnet
impl Compose for ClientSubnet
Source§impl Debug for ClientSubnet
impl Debug for ClientSubnet
Source§impl From<ClientSubnet> for AllOptData
impl From<ClientSubnet> for AllOptData
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 ParseAll for ClientSubnet
impl ParseAll for ClientSubnet
Source§impl PartialEq for ClientSubnet
impl PartialEq for ClientSubnet
Source§impl PartialOrd for ClientSubnet
impl PartialOrd for ClientSubnet
impl Copy for ClientSubnet
impl Eq for ClientSubnet
impl StructuralPartialEq for ClientSubnet
Auto Trait Implementations§
impl Freeze for ClientSubnet
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