pub struct PrioritizedCommand {
pub command: BackendCommand,
pub priority: CommandPriority,
pub deadline_ms: Option<u64>,
pub retry_policy: Option<RetryPolicy>,
}Expand description
Wrapper for prioritized commands
Fields§
§command: BackendCommandThe underlying command
priority: CommandPriorityPriority level
deadline_ms: Option<u64>Optional deadline in milliseconds from now
retry_policy: Option<RetryPolicy>Optional retry policy
Trait Implementations§
Source§impl Clone for PrioritizedCommand
impl Clone for PrioritizedCommand
Source§fn clone(&self) -> PrioritizedCommand
fn clone(&self) -> PrioritizedCommand
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 PrioritizedCommand
impl Debug for PrioritizedCommand
Source§impl<'de> Deserialize<'de> for PrioritizedCommand
impl<'de> Deserialize<'de> for PrioritizedCommand
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
Auto Trait Implementations§
impl Freeze for PrioritizedCommand
impl RefUnwindSafe for PrioritizedCommand
impl Send for PrioritizedCommand
impl Sync for PrioritizedCommand
impl Unpin for PrioritizedCommand
impl UnsafeUnpin for PrioritizedCommand
impl UnwindSafe for PrioritizedCommand
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