pub struct ChannelNumber { /* private fields */ }
Expand description
The ChannelNumber
attribute contains the number of the channel. The
value portion of this attribute is 4 bytes long and consists of a
16-bit unsigned integer followed by a two-octet RFFU
(Reserved For
Future Use) field, which MUST be set to 0 on transmission and MUST be
ignored on reception.
§Examples
let attr = ChannelNumber::new(1234);
assert_eq!(attr.number(), 1234);
Implementations§
Trait Implementations§
source§impl Clone for ChannelNumber
impl Clone for ChannelNumber
source§fn clone(&self) -> ChannelNumber
fn clone(&self) -> ChannelNumber
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 ChannelNumber
impl Debug for ChannelNumber
source§impl Default for ChannelNumber
impl Default for ChannelNumber
source§fn default() -> ChannelNumber
fn default() -> ChannelNumber
Returns the “default value” for a type. Read more
source§impl From<ChannelNumber> for StunAttribute
impl From<ChannelNumber> for StunAttribute
source§fn from(value: ChannelNumber) -> Self
fn from(value: ChannelNumber) -> Self
Converts to this type from the input type.
source§impl PartialEq for ChannelNumber
impl PartialEq for ChannelNumber
source§impl StunAttributeType for ChannelNumber
impl StunAttributeType for ChannelNumber
source§fn get_type() -> AttributeTypewhere
Self: Sized,
fn get_type() -> AttributeTypewhere
Self: Sized,
Returns the STUN attribute type.
source§fn attribute_type(&self) -> AttributeType
fn attribute_type(&self) -> AttributeType
Returns the STUN attribute type of this instance.
impl Eq for ChannelNumber
impl StructuralPartialEq for ChannelNumber
Auto Trait Implementations§
impl Freeze for ChannelNumber
impl RefUnwindSafe for ChannelNumber
impl Send for ChannelNumber
impl Sync for ChannelNumber
impl Unpin for ChannelNumber
impl UnwindSafe for ChannelNumber
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)