pub struct AdditionalAddressFamily(/* private fields */);
Expand description
This attribute is used by clients to request the allocation of an
IPv4 and IPv6 address type from a server. The AddtionalAddressFamily
attribute MAY be present in the Allocate request. The attribute value
of (IPv6 address) is the only valid value in Allocate request.
§Examples
let attr = AdditionalAddressFamily::new(AddressFamily::IPv6);
assert_eq!(attr.family(), AddressFamily::IPv6);
Implementations§
source§impl AdditionalAddressFamily
impl AdditionalAddressFamily
sourcepub fn new(family: AddressFamily) -> Self
pub fn new(family: AddressFamily) -> Self
sourcepub fn family(&self) -> AddressFamily
pub fn family(&self) -> AddressFamily
Gets the address family
Trait Implementations§
source§impl Clone for AdditionalAddressFamily
impl Clone for AdditionalAddressFamily
source§fn clone(&self) -> AdditionalAddressFamily
fn clone(&self) -> AdditionalAddressFamily
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 Debug for AdditionalAddressFamily
impl Debug for AdditionalAddressFamily
source§impl From<AdditionalAddressFamily> for StunAttribute
impl From<AdditionalAddressFamily> for StunAttribute
source§fn from(value: AdditionalAddressFamily) -> Self
fn from(value: AdditionalAddressFamily) -> Self
Converts to this type from the input type.
source§impl From<AddressFamily> for AdditionalAddressFamily
impl From<AddressFamily> for AdditionalAddressFamily
source§fn from(family: AddressFamily) -> Self
fn from(family: AddressFamily) -> Self
Converts to this type from the input type.
source§impl<T> From<T> for AdditionalAddressFamily
impl<T> From<T> for AdditionalAddressFamily
source§impl PartialEq for AdditionalAddressFamily
impl PartialEq for AdditionalAddressFamily
source§impl StunAttributeType for AdditionalAddressFamily
impl StunAttributeType for AdditionalAddressFamily
source§fn get_type() -> AttributeTypewhere
Self: Sized,
fn get_type() -> AttributeTypewhere
Self: Sized,
Returns the STUN attribute type.
source§fn attribute_type(&self) -> AttributeType
fn attribute_type(&self) -> AttributeType
Returns the STUN attribute type of this instance.
impl Eq for AdditionalAddressFamily
impl StructuralPartialEq for AdditionalAddressFamily
Auto Trait Implementations§
impl Freeze for AdditionalAddressFamily
impl RefUnwindSafe for AdditionalAddressFamily
impl Send for AdditionalAddressFamily
impl Sync for AdditionalAddressFamily
impl Unpin for AdditionalAddressFamily
impl UnwindSafe for AdditionalAddressFamily
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<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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)