Struct rustun::rfc5389::attributes::MappedAddress
[−]
[src]
pub struct MappedAddress(_);
MAPPED-ADDRESS
attribute.
See RFC 5389 -- 15.1. MAPPED-ADDRESS about this attribute.
Methods
impl MappedAddress
[src]
fn new(addr: SocketAddr) -> Self
Makes a new MappedAddress
instance.
fn address(&self) -> SocketAddr
Returns the address of this instance.
Trait Implementations
impl Debug for MappedAddress
[src]
impl Clone for MappedAddress
[src]
fn clone(&self) -> MappedAddress
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for MappedAddress
[src]
impl PartialEq for MappedAddress
[src]
fn eq(&self, __arg_0: &MappedAddress) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MappedAddress) -> bool
This method tests for !=
.
impl Eq for MappedAddress
[src]
impl Hash for MappedAddress
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Attribute for MappedAddress
[src]
fn get_type(&self) -> Type
Returns the attribute type of this instance.
fn try_from_raw(attr: &RawAttribute, _message: &RawMessage) -> Result<Self>
Tries to convert from RawAttribute
. Read more
fn encode_value(&self, _message: &RawMessage) -> Result<Vec<u8>>
Tries to encode the value of this attribute to bytes.
fn try_to_raw(&self, message: &RawMessage) -> Result<RawAttribute>
Tries to convert to RawAttribute
. Read more