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