Struct stun_codec::rfc5389::attributes::UnknownAttributes [−][src]
pub struct UnknownAttributes { /* fields omitted */ }
UNKNOWN-ATTRIBUTES
attribute.
See RFC 5389 -- 15.9. UNKNOWN-ATTRIBUTES about this attribute.
Methods
impl UnknownAttributes
[src]
impl UnknownAttributes
pub const CODEPOINT: u16
CODEPOINT: u16 = 10
The codepoint of the type of the attribute.
pub fn new(unknowns: Vec<AttributeType>) -> Self
[src]
pub fn new(unknowns: Vec<AttributeType>) -> Self
Makes a new UnknownAttributes
instance.
pub fn unknowns(&self) -> &[AttributeType]
[src]
pub fn unknowns(&self) -> &[AttributeType]
Returns the unknown attribute types of this instance.
Trait Implementations
impl Debug for UnknownAttributes
[src]
impl Debug for UnknownAttributes
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for UnknownAttributes
[src]
impl Clone for UnknownAttributes
fn clone(&self) -> UnknownAttributes
[src]
fn clone(&self) -> UnknownAttributes
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for UnknownAttributes
[src]
impl PartialEq for UnknownAttributes
fn eq(&self, other: &UnknownAttributes) -> bool
[src]
fn eq(&self, other: &UnknownAttributes) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UnknownAttributes) -> bool
[src]
fn ne(&self, other: &UnknownAttributes) -> bool
This method tests for !=
.
impl Eq for UnknownAttributes
[src]
impl Eq for UnknownAttributes
impl Hash for UnknownAttributes
[src]
impl Hash for UnknownAttributes
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Attribute for UnknownAttributes
[src]
impl Attribute for UnknownAttributes
type Decoder = UnknownAttributesDecoder
The decoder of the value part of the attribute.
type Encoder = UnknownAttributesEncoder
The encoder of the value part of the attribute.
fn get_type(&self) -> AttributeType
[src]
fn get_type(&self) -> AttributeType
Returns the type of the attribute.
fn before_encode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>
[src]
fn before_encode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>
This method is called before encoding the attribute. Read more
fn after_decode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>
[src]
fn after_decode<A: Attribute>(&mut self, message: &Message<A>) -> Result<()>
This method is called after decoding the attribute and before being appended to the given message. Read more
impl From<UnknownAttributes> for Attribute
[src]
impl From<UnknownAttributes> for Attribute
fn from(f: UnknownAttributes) -> Self
[src]
fn from(f: UnknownAttributes) -> Self
Performs the conversion.
impl TryAsRef<UnknownAttributes> for Attribute
[src]
impl TryAsRef<UnknownAttributes> for Attribute
fn try_as_ref(&self) -> Option<&UnknownAttributes>
[src]
fn try_as_ref(&self) -> Option<&UnknownAttributes>
Attempts to convert self
to a reference to T
. Read more
Auto Trait Implementations
impl Send for UnknownAttributes
impl Send for UnknownAttributes
impl Sync for UnknownAttributes
impl Sync for UnknownAttributes