pub enum ClaimNextOutcome {
Empty,
Claimed {
revision: Revision,
request: Box<QueuedRun>,
},
Conflict {
actual: Revision,
},
}Expand description
Outcome of claiming the next queued request without destructively removing it.
Variants§
Empty
The queue was empty at the expected revision.
Claimed
The head request was claimed and returned.
Fields
Conflict
Another writer changed the queue first.
Trait Implementations§
Source§impl Clone for ClaimNextOutcome
impl Clone for ClaimNextOutcome
Source§fn clone(&self) -> ClaimNextOutcome
fn clone(&self) -> ClaimNextOutcome
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 ClaimNextOutcome
impl Debug for ClaimNextOutcome
Source§impl<'de> Deserialize<'de> for ClaimNextOutcome
impl<'de> Deserialize<'de> for ClaimNextOutcome
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 PartialEq for ClaimNextOutcome
impl PartialEq for ClaimNextOutcome
Source§impl Serialize for ClaimNextOutcome
impl Serialize for ClaimNextOutcome
impl StructuralPartialEq for ClaimNextOutcome
Auto Trait Implementations§
impl Freeze for ClaimNextOutcome
impl RefUnwindSafe for ClaimNextOutcome
impl Send for ClaimNextOutcome
impl Sync for ClaimNextOutcome
impl Unpin for ClaimNextOutcome
impl UnsafeUnpin for ClaimNextOutcome
impl UnwindSafe for ClaimNextOutcome
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