pub struct IceControlled(/* private fields */);
Expand description
The controlled agent MUST include the IceControlled
attribute in a Binding request. The content of this value
is used as tiebreaker values when an ICE role
conflict occurs
§Examples
let attr = IceControlled::from(1234);
assert_eq!(attr, 1234);
Implementations§
Trait Implementations§
source§impl AsRef<u64> for IceControlled
impl AsRef<u64> for IceControlled
source§impl Clone for IceControlled
impl Clone for IceControlled
source§fn clone(&self) -> IceControlled
fn clone(&self) -> IceControlled
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 IceControlled
impl Debug for IceControlled
source§impl From<IceControlled> for StunAttribute
impl From<IceControlled> for StunAttribute
source§fn from(value: IceControlled) -> Self
fn from(value: IceControlled) -> Self
Converts to this type from the input type.
source§impl From<u64> for IceControlled
impl From<u64> for IceControlled
source§impl Hash for IceControlled
impl Hash for IceControlled
source§impl Ord for IceControlled
impl Ord for IceControlled
source§fn cmp(&self, other: &IceControlled) -> Ordering
fn cmp(&self, other: &IceControlled) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<IceControlled> for u64
impl PartialEq<IceControlled> for u64
source§impl PartialEq<u64> for IceControlled
impl PartialEq<u64> for IceControlled
source§impl PartialEq for IceControlled
impl PartialEq for IceControlled
source§impl PartialOrd<IceControlled> for u64
impl PartialOrd<IceControlled> for u64
source§impl PartialOrd<u64> for IceControlled
impl PartialOrd<u64> for IceControlled
source§impl PartialOrd for IceControlled
impl PartialOrd for IceControlled
source§impl StunAttributeType for IceControlled
impl StunAttributeType for IceControlled
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 Copy for IceControlled
impl Eq for IceControlled
impl StructuralPartialEq for IceControlled
Auto Trait Implementations§
impl Freeze for IceControlled
impl RefUnwindSafe for IceControlled
impl Send for IceControlled
impl Sync for IceControlled
impl Unpin for IceControlled
impl UnwindSafe for IceControlled
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
)