pub struct StreamPriority { /* private fields */ }Expand description
A priority assigned to a sync stream subscription.
Implementations§
Source§impl StreamPriority
impl StreamPriority
pub const HIGHEST: StreamPriority
pub const ONE: StreamPriority
Sourcepub const SENTINEL: StreamPriority
pub const SENTINEL: StreamPriority
A low priority used to represent fully-completed sync operations across all priorities.
pub fn priority_number(self) -> i32
Trait Implementations§
Source§impl Clone for StreamPriority
impl Clone for StreamPriority
Source§fn clone(&self) -> StreamPriority
fn clone(&self) -> StreamPriority
Returns a duplicate 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 StreamPriority
impl Debug for StreamPriority
Source§impl<'de> Deserialize<'de> for StreamPriority
impl<'de> Deserialize<'de> for StreamPriority
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<StreamPriority> for i32
impl From<StreamPriority> for i32
Source§fn from(val: StreamPriority) -> Self
fn from(val: StreamPriority) -> Self
Converts to this type from the input type.
Source§impl Hash for StreamPriority
impl Hash for StreamPriority
Source§impl Ord for StreamPriority
impl Ord for StreamPriority
Source§impl PartialEq for StreamPriority
impl PartialEq for StreamPriority
Source§impl PartialOrd for StreamPriority
impl PartialOrd for StreamPriority
Source§impl Serialize for StreamPriority
impl Serialize for StreamPriority
Source§impl TryFrom<i32> for StreamPriority
impl TryFrom<i32> for StreamPriority
impl Copy for StreamPriority
impl Eq for StreamPriority
impl StructuralPartialEq for StreamPriority
Auto Trait Implementations§
impl Freeze for StreamPriority
impl RefUnwindSafe for StreamPriority
impl Send for StreamPriority
impl Sync for StreamPriority
impl Unpin for StreamPriority
impl UnsafeUnpin for StreamPriority
impl UnwindSafe for StreamPriority
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