pub struct MappedAddress(/* private fields */);Expand description
MAPPED-ADDRESS attribute.
See RFC 5389 – 15.1. MAPPED-ADDRESS about this attribute.
Implementations§
Source§impl MappedAddress
impl MappedAddress
Sourcepub fn new(addr: SocketAddr) -> MappedAddress
pub fn new(addr: SocketAddr) -> MappedAddress
Makes a new MappedAddress instance.
Sourcepub fn address(&self) -> SocketAddr
pub fn address(&self) -> SocketAddr
Returns the address of this instance.
Trait Implementations§
Source§impl Attribute for MappedAddress
impl Attribute for MappedAddress
Source§type Decoder = MappedAddressDecoder
type Decoder = MappedAddressDecoder
The decoder of the value part of the attribute.
Source§type Encoder = MappedAddressEncoder
type Encoder = MappedAddressEncoder
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 MappedAddress
impl Clone for MappedAddress
Source§fn clone(&self) -> MappedAddress
fn clone(&self) -> MappedAddress
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 MappedAddress
impl Debug for MappedAddress
Source§impl From<MappedAddress> for Attribute
impl From<MappedAddress> for Attribute
Source§fn from(f: MappedAddress) -> Self
fn from(f: MappedAddress) -> Self
Converts to this type from the input type.
Source§impl Hash for MappedAddress
impl Hash for MappedAddress
Source§impl PartialEq for MappedAddress
impl PartialEq for MappedAddress
Source§impl TryAsRef<MappedAddress> for Attribute
impl TryAsRef<MappedAddress> for Attribute
Source§fn try_as_ref(&self) -> Option<&MappedAddress>
fn try_as_ref(&self) -> Option<&MappedAddress>
impl Eq for MappedAddress
impl StructuralPartialEq for MappedAddress
Auto Trait Implementations§
impl Freeze for MappedAddress
impl RefUnwindSafe for MappedAddress
impl Send for MappedAddress
impl Sync for MappedAddress
impl Unpin for MappedAddress
impl UnwindSafe for MappedAddress
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