Struct stun::xoraddr::XorMappedAddress
source · Expand description
XORMappedAddress implements XOR-MAPPED-ADDRESS attribute.
RFC 5389 Section 15.2
Fields
ip: IpAddr
port: u16
Implementations
Trait Implementations
sourceimpl Default for XorMappedAddress
impl Default for XorMappedAddress
sourceimpl Display for XorMappedAddress
impl Display for XorMappedAddress
sourceimpl Getter for XorMappedAddress
impl Getter for XorMappedAddress
sourcefn get_from(&mut self, m: &Message) -> Result<(), Error>
fn get_from(&mut self, m: &Message) -> Result<(), Error>
get_from decodes XOR-MAPPED-ADDRESS attribute in message and returns error if any. While decoding, a.IP is reused if possible and can be rendered to invalid state (e.g. if a.IP was set to IPv6 and then IPv4 value were decoded into it), be careful.
Auto Trait Implementations
impl RefUnwindSafe for XorMappedAddress
impl Send for XorMappedAddress
impl Sync for XorMappedAddress
impl Unpin for XorMappedAddress
impl UnwindSafe for XorMappedAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more