Struct rustun::rfc5389::attributes::AlternateServer
[−]
[src]
pub struct AlternateServer(_);
ALTERNATE-SERVER
attribute.
See RFC 5389 -- 15.11. ALTERNATE-SERVER about this attribute.
Methods
impl AlternateServer
[src]
fn new(addr: SocketAddr) -> Self
Makes a new AlternateServer
instance.
fn address(&self) -> SocketAddr
Returns the alternate address.
Trait Implementations
impl Debug for AlternateServer
[src]
impl Clone for AlternateServer
[src]
fn clone(&self) -> AlternateServer
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 AlternateServer
[src]
impl PartialEq for AlternateServer
[src]
fn eq(&self, __arg_0: &AlternateServer) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AlternateServer) -> bool
This method tests for !=
.
impl Eq for AlternateServer
[src]
impl Hash for AlternateServer
[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 AlternateServer
[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