pub struct AddAddressV6 { /* private fields */ }Expand description
An information type used to add an IPv6 address and its associated information (desination address, netmask, etc.) to an interface.
Implementations§
Source§impl AddAddressV6
impl AddAddressV6
Sourcepub fn new(addr: Ipv6Addr) -> Self
pub fn new(addr: Ipv6Addr) -> Self
Constructs a new AddAddress request for the given IPv6 address.
Sourcepub fn set_broadcast(&mut self, addr: Ipv6Addr)
pub fn set_broadcast(&mut self, addr: Ipv6Addr)
Adds an associated broadcast address to the request.
Note that only one of broadcast and destination addresses may be set for a request; if both
are set, then any invocation of add_addr() the request is used for will fail with an error
of kind io::ErrorKind::InvalidInput.
Sourcepub fn set_destination(&mut self, addr: Ipv6Addr)
pub fn set_destination(&mut self, addr: Ipv6Addr)
Adds an associated destination address to the request.
Note that only one of broadcast and destination addresses may be set for a request; if both
are set, then any invocation of add_addr() the request is used for will fail with an error
of kind io::ErrorKind::InvalidInput.
Sourcepub fn set_netmask(&mut self, netmask: Netmask)
pub fn set_netmask(&mut self, netmask: Netmask)
Adds an associated netmask for the given request.
The netmask must between 0 and 128 inclusive; if a value outside of this range is used, then
any invocation of add_addr() the request is used for will fail with an error of kind
io::ErrorKind::InvalidInput.
Trait Implementations§
Source§impl Clone for AddAddressV6
impl Clone for AddAddressV6
Source§fn clone(&self) -> AddAddressV6
fn clone(&self) -> AddAddressV6
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AddAddressV6
impl Debug for AddAddressV6
Source§impl From<AddAddressV6> for AddAddress
impl From<AddAddressV6> for AddAddress
Source§fn from(value: AddAddressV6) -> Self
fn from(value: AddAddressV6) -> Self
Auto Trait Implementations§
impl Freeze for AddAddressV6
impl RefUnwindSafe for AddAddressV6
impl Send for AddAddressV6
impl Sync for AddAddressV6
impl Unpin for AddAddressV6
impl UnwindSafe for AddAddressV6
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
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)
clone_to_uninit)