Struct rustun::types::SocketAddrValue
[−]
[src]
pub struct SocketAddrValue(_);
Socket address used as STUN attribute value.
Methods
impl SocketAddrValue
[src]
fn new(addr: SocketAddr) -> Self
Makes a new SocketAddrValue
instance.
fn address(&self) -> SocketAddr
Returns the socket address of this instance.
fn xor(&self, transaction_id: &TransactionId) -> Self
Applies XOR operation on the socket address of this instance.
fn read_from<R: Read>(reader: &mut R) -> Result<Self>
Reads a SocketAddrValue
instance from reader
.
fn write_to<W: Write>(&self, writer: &mut W) -> Result<()>
Writes the socket address of this instance to writer
.
Trait Implementations
impl Debug for SocketAddrValue
[src]
impl Clone for SocketAddrValue
[src]
fn clone(&self) -> SocketAddrValue
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 SocketAddrValue
[src]
impl PartialEq for SocketAddrValue
[src]
fn eq(&self, __arg_0: &SocketAddrValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SocketAddrValue) -> bool
This method tests for !=
.