pub struct RequestedAddressFamily(/* private fields */);Expand description
This attribute is used in Allocate and Refresh requests to specify the address type requested by the client.
See https://datatracker.ietf.org/doc/html/rfc8656#name-requested-address-family for details.
Implementations§
Source§impl RequestedAddressFamily
impl RequestedAddressFamily
Sourcepub fn new(fam: AddressFamily) -> RequestedAddressFamily
pub fn new(fam: AddressFamily) -> RequestedAddressFamily
Makes a new RequestedAddressFamily instance.
Sourcepub fn address_family(&self) -> AddressFamily
pub fn address_family(&self) -> AddressFamily
Returns the requested address family.
Trait Implementations§
Source§impl Attribute for RequestedAddressFamily
impl Attribute for RequestedAddressFamily
Source§type Decoder = RequestedAddressFamilyDecoder
type Decoder = RequestedAddressFamilyDecoder
The decoder of the value part of the attribute.
Source§type Encoder = RequestedAddressFamilyEncoder
type Encoder = RequestedAddressFamilyEncoder
The encoder of the value part of the attribute.
Source§fn get_type(&self) -> AttributeType
fn get_type(&self) -> AttributeType
Returns the type of the attribute.
Source§impl Clone for RequestedAddressFamily
impl Clone for RequestedAddressFamily
Source§fn clone(&self) -> RequestedAddressFamily
fn clone(&self) -> RequestedAddressFamily
Returns a duplicate 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 RequestedAddressFamily
impl Debug for RequestedAddressFamily
Source§impl From<RequestedAddressFamily> for Attribute
impl From<RequestedAddressFamily> for Attribute
Source§fn from(f: RequestedAddressFamily) -> Self
fn from(f: RequestedAddressFamily) -> Self
Converts to this type from the input type.
Source§impl Hash for RequestedAddressFamily
impl Hash for RequestedAddressFamily
Source§impl PartialEq for RequestedAddressFamily
impl PartialEq for RequestedAddressFamily
Source§impl TryAsRef<RequestedAddressFamily> for Attribute
impl TryAsRef<RequestedAddressFamily> for Attribute
Source§fn try_as_ref(&self) -> Option<&RequestedAddressFamily>
fn try_as_ref(&self) -> Option<&RequestedAddressFamily>
impl Eq for RequestedAddressFamily
impl StructuralPartialEq for RequestedAddressFamily
Auto Trait Implementations§
impl Freeze for RequestedAddressFamily
impl RefUnwindSafe for RequestedAddressFamily
impl Send for RequestedAddressFamily
impl Sync for RequestedAddressFamily
impl Unpin for RequestedAddressFamily
impl UnwindSafe for RequestedAddressFamily
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