pub struct ResponsePort(/* private fields */);
Expand description
The response port attribute contains a port. This attribute can be present in the Binding Request and indicates which port the Binding Response will be sent to. For servers which support the response port attribute, the Binding Response MUST be transmitted to the source IP address of the Binding Request and the port contained in response port.
§Examples
let attr = ResponsePort::from(1234);
assert_eq!(attr, 1234);
Implementations§
Trait Implementations§
source§impl AsRef<u16> for ResponsePort
impl AsRef<u16> for ResponsePort
source§impl Clone for ResponsePort
impl Clone for ResponsePort
source§fn clone(&self) -> ResponsePort
fn clone(&self) -> ResponsePort
Returns a copy 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 ResponsePort
impl Debug for ResponsePort
source§impl From<ResponsePort> for StunAttribute
impl From<ResponsePort> for StunAttribute
source§fn from(value: ResponsePort) -> Self
fn from(value: ResponsePort) -> Self
Converts to this type from the input type.
source§impl From<u16> for ResponsePort
impl From<u16> for ResponsePort
source§impl Hash for ResponsePort
impl Hash for ResponsePort
source§impl Ord for ResponsePort
impl Ord for ResponsePort
source§fn cmp(&self, other: &ResponsePort) -> Ordering
fn cmp(&self, other: &ResponsePort) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ResponsePort> for u16
impl PartialEq<ResponsePort> for u16
source§impl PartialEq<u16> for ResponsePort
impl PartialEq<u16> for ResponsePort
source§impl PartialEq for ResponsePort
impl PartialEq for ResponsePort
source§impl PartialOrd<ResponsePort> for u16
impl PartialOrd<ResponsePort> for u16
source§impl PartialOrd<u16> for ResponsePort
impl PartialOrd<u16> for ResponsePort
source§impl PartialOrd for ResponsePort
impl PartialOrd for ResponsePort
source§impl StunAttributeType for ResponsePort
impl StunAttributeType for ResponsePort
source§fn get_type() -> AttributeTypewhere
Self: Sized,
fn get_type() -> AttributeTypewhere
Self: Sized,
Returns the STUN attribute type.
source§fn attribute_type(&self) -> AttributeType
fn attribute_type(&self) -> AttributeType
Returns the STUN attribute type of this instance.
impl Copy for ResponsePort
impl Eq for ResponsePort
impl StructuralPartialEq for ResponsePort
Auto Trait Implementations§
impl Freeze for ResponsePort
impl RefUnwindSafe for ResponsePort
impl Send for ResponsePort
impl Sync for ResponsePort
impl Unpin for ResponsePort
impl UnwindSafe for ResponsePort
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)