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