Struct librice::stun::attribute::AttributeHeader
source · pub struct AttributeHeader {
pub atype: AttributeType,
pub length: u16,
}
Expand description
Structure for holding the header of a STUN attribute. Contains the type and the length
Fields§
§atype: AttributeType
§length: u16
Trait Implementations§
source§impl Clone for AttributeHeader
impl Clone for AttributeHeader
source§fn clone(&self) -> AttributeHeader
fn clone(&self) -> AttributeHeader
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 AttributeHeader
impl Debug for AttributeHeader
source§impl From<AttributeHeader> for Vec<u8>
impl From<AttributeHeader> for Vec<u8>
source§fn from(f: AttributeHeader) -> Self
fn from(f: AttributeHeader) -> Self
Converts to this type from the input type.
source§impl PartialEq<AttributeHeader> for AttributeHeader
impl PartialEq<AttributeHeader> for AttributeHeader
source§fn eq(&self, other: &AttributeHeader) -> bool
fn eq(&self, other: &AttributeHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.