pub struct Priority(/* private fields */);
Expand description
The Priority
attribute MUST be included in a Binding request and be
set to the value computed by the algorithm in
Section 5.1.2
for the local candidate, but with the candidate type preference of
peer-reflexive candidates.
§Examples
let attr = Priority::from(1234);
assert_eq!(attr, 1234);
Implementations§
Trait Implementations§
source§impl From<Priority> for StunAttribute
impl From<Priority> for StunAttribute
source§impl Ord for Priority
impl Ord for Priority
source§impl PartialOrd<Priority> for u32
impl PartialOrd<Priority> for u32
source§impl PartialOrd<u32> for Priority
impl PartialOrd<u32> for Priority
source§impl PartialOrd for Priority
impl PartialOrd for Priority
source§impl StunAttributeType for Priority
impl StunAttributeType for Priority
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 Priority
impl Eq for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Freeze for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnwindSafe for Priority
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
)