pub struct PendingCommand<I> { /* private fields */ }Expand description
An immutable view of one pending command.
Implementations§
Source§impl<I> PendingCommand<I>
impl<I> PendingCommand<I>
Sourcepub fn command_id(&self) -> &str
pub fn command_id(&self) -> &str
The command’s id.
Sourcepub const fn submission_index(&self) -> u64
pub const fn submission_index(&self) -> u64
The command’s submission number in this set: counted up from 0 and never reused, so it orders commands by first submission.
Sourcepub const fn retry_ready(&self) -> bool
pub const fn retry_ready(&self) -> bool
Whether the transport died since the last send, so the next identical
PendingCommandSet::submit is a Submission::Retry.
Trait Implementations§
Source§impl<I: Clone> Clone for PendingCommand<I>
impl<I: Clone> Clone for PendingCommand<I>
Source§impl<I: Debug> Debug for PendingCommand<I>
impl<I: Debug> Debug for PendingCommand<I>
impl<I: Eq> Eq for PendingCommand<I>
Source§impl<I: PartialEq> PartialEq for PendingCommand<I>
impl<I: PartialEq> PartialEq for PendingCommand<I>
impl<I: PartialEq> StructuralPartialEq for PendingCommand<I>
Auto Trait Implementations§
impl<I> Freeze for PendingCommand<I>where
I: Freeze,
impl<I> RefUnwindSafe for PendingCommand<I>where
I: RefUnwindSafe,
impl<I> Send for PendingCommand<I>where
I: Send,
impl<I> Sync for PendingCommand<I>where
I: Sync,
impl<I> Unpin for PendingCommand<I>where
I: Unpin,
impl<I> UnsafeUnpin for PendingCommand<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for PendingCommand<I>where
I: UnwindSafe,
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