Struct rustun::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]
fn new(unknowns: Vec<Type>) -> Self
Makes a new UnknownAttributes
instance.
fn unknowns(&self) -> &[Type]
Returns the unknown attribute types of this instance.
Trait Implementations
impl Debug for UnknownAttributes
[src]
impl Clone for UnknownAttributes
[src]
fn clone(&self) -> UnknownAttributes
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 PartialEq for UnknownAttributes
[src]
fn eq(&self, __arg_0: &UnknownAttributes) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UnknownAttributes) -> bool
This method tests for !=
.
impl Eq for UnknownAttributes
[src]
impl Hash for UnknownAttributes
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Attribute for UnknownAttributes
[src]
fn get_type(&self) -> Type
Returns the attribute type of this instance.
fn try_from_raw(attr: &RawAttribute, _message: &RawMessage) -> Result<Self>
Tries to convert from RawAttribute
. Read more
fn encode_value(&self, _message: &RawMessage) -> Result<Vec<u8>>
Tries to encode the value of this attribute to bytes.
fn try_to_raw(&self, message: &RawMessage) -> Result<RawAttribute>
Tries to convert to RawAttribute
. Read more