Struct stun::attributes::RawAttribute
source · pub struct RawAttribute {
pub typ: AttrType,
pub length: u16,
pub value: Vec<u8>,
}
Expand description
RawAttribute is a Type-Length-Value (TLV) object that can be added to a STUN message. Attributes are divided into two types: comprehension-required and comprehension-optional. STUN agents can safely ignore comprehension-optional attributes they don’t understand, but cannot successfully process a message if it contains comprehension-required attributes that are not understood.
Fields§
§typ: AttrType
§length: u16
§value: Vec<u8>
Trait Implementations§
source§impl Clone for RawAttribute
impl Clone for RawAttribute
source§fn clone(&self) -> RawAttribute
fn clone(&self) -> RawAttribute
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 RawAttribute
impl Debug for RawAttribute
source§impl Default for RawAttribute
impl Default for RawAttribute
source§fn default() -> RawAttribute
fn default() -> RawAttribute
Returns the “default value” for a type. Read more
source§impl Display for RawAttribute
impl Display for RawAttribute
source§impl PartialEq for RawAttribute
impl PartialEq for RawAttribute
source§fn eq(&self, other: &RawAttribute) -> bool
fn eq(&self, other: &RawAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Setter for RawAttribute
impl Setter for RawAttribute
impl Eq for RawAttribute
impl StructuralPartialEq for RawAttribute
Auto Trait Implementations§
impl Freeze for RawAttribute
impl RefUnwindSafe for RawAttribute
impl Send for RawAttribute
impl Sync for RawAttribute
impl Unpin for RawAttribute
impl UnwindSafe for RawAttribute
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