Struct stun_codec::rfc5766::attributes::RequestedTransport
source · pub struct RequestedTransport(/* private fields */);
Expand description
REQUESTED-TRANSPORT
attribute.
See RFC 5766 – 14.7. REQUESTED-TRANSPORT about this attribute.
Implementations§
Trait Implementations§
source§impl Attribute for RequestedTransport
impl Attribute for RequestedTransport
§type Decoder = RequestedTransportDecoder
type Decoder = RequestedTransportDecoder
The decoder of the value part of the attribute.
§type Encoder = RequestedTransportEncoder
type Encoder = RequestedTransportEncoder
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 RequestedTransport
impl Clone for RequestedTransport
source§fn clone(&self) -> RequestedTransport
fn clone(&self) -> RequestedTransport
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 RequestedTransport
impl Debug for RequestedTransport
source§impl From<RequestedTransport> for Attribute
impl From<RequestedTransport> for Attribute
source§fn from(f: RequestedTransport) -> Self
fn from(f: RequestedTransport) -> Self
Converts to this type from the input type.
source§impl Hash for RequestedTransport
impl Hash for RequestedTransport
source§impl PartialEq for RequestedTransport
impl PartialEq for RequestedTransport
source§fn eq(&self, other: &RequestedTransport) -> bool
fn eq(&self, other: &RequestedTransport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryAsRef<RequestedTransport> for Attribute
impl TryAsRef<RequestedTransport> for Attribute
source§fn try_as_ref(&self) -> Option<&RequestedTransport>
fn try_as_ref(&self) -> Option<&RequestedTransport>
impl Eq for RequestedTransport
impl StructuralPartialEq for RequestedTransport
Auto Trait Implementations§
impl Freeze for RequestedTransport
impl RefUnwindSafe for RequestedTransport
impl Send for RequestedTransport
impl Sync for RequestedTransport
impl Unpin for RequestedTransport
impl UnwindSafe for RequestedTransport
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