pub struct PriorityScore(pub f32);Expand description
Priority score for a message (0.0 to 1.0).
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
Source§impl Clone for PriorityScore
impl Clone for PriorityScore
Source§fn clone(&self) -> PriorityScore
fn clone(&self) -> PriorityScore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PriorityScore
impl Debug for PriorityScore
Source§impl PartialEq for PriorityScore
impl PartialEq for PriorityScore
Source§fn eq(&self, other: &PriorityScore) -> bool
fn eq(&self, other: &PriorityScore) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PriorityScore
impl PartialOrd for PriorityScore
impl Copy for PriorityScore
impl StructuralPartialEq for PriorityScore
Auto Trait Implementations§
impl Freeze for PriorityScore
impl RefUnwindSafe for PriorityScore
impl Send for PriorityScore
impl Sync for PriorityScore
impl Unpin for PriorityScore
impl UnsafeUnpin for PriorityScore
impl UnwindSafe for PriorityScore
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