pub struct UnknownAttributes { /* private fields */ }Expand description
UNKNOWN-ATTRIBUTES attribute.
See RFC 5389 – 15.9. UNKNOWN-ATTRIBUTES about this attribute.
Implementations§
Source§impl UnknownAttributes
impl UnknownAttributes
Sourcepub fn new(unknowns: Vec<AttributeType>) -> UnknownAttributes
pub fn new(unknowns: Vec<AttributeType>) -> UnknownAttributes
Makes a new UnknownAttributes instance.
Sourcepub fn unknowns(&self) -> &[AttributeType]
pub fn unknowns(&self) -> &[AttributeType]
Returns the unknown attribute types of this instance.
Trait Implementations§
Source§impl Attribute for UnknownAttributes
impl Attribute for UnknownAttributes
Source§type Decoder = UnknownAttributesDecoder
type Decoder = UnknownAttributesDecoder
The decoder of the value part of the attribute.
Source§type Encoder = UnknownAttributesEncoder
type Encoder = UnknownAttributesEncoder
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 UnknownAttributes
impl Clone for UnknownAttributes
Source§fn clone(&self) -> UnknownAttributes
fn clone(&self) -> UnknownAttributes
Returns a duplicate 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 UnknownAttributes
impl Debug for UnknownAttributes
Source§impl From<UnknownAttributes> for Attribute
impl From<UnknownAttributes> for Attribute
Source§fn from(f: UnknownAttributes) -> Self
fn from(f: UnknownAttributes) -> Self
Converts to this type from the input type.
Source§impl Hash for UnknownAttributes
impl Hash for UnknownAttributes
Source§impl PartialEq for UnknownAttributes
impl PartialEq for UnknownAttributes
Source§impl TryAsRef<UnknownAttributes> for Attribute
impl TryAsRef<UnknownAttributes> for Attribute
Source§fn try_as_ref(&self) -> Option<&UnknownAttributes>
fn try_as_ref(&self) -> Option<&UnknownAttributes>
impl Eq for UnknownAttributes
impl StructuralPartialEq for UnknownAttributes
Auto Trait Implementations§
impl Freeze for UnknownAttributes
impl RefUnwindSafe for UnknownAttributes
impl Send for UnknownAttributes
impl Sync for UnknownAttributes
impl Unpin for UnknownAttributes
impl UnwindSafe for UnknownAttributes
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