pub enum BatchAnswer<T> {
Written(T),
VersionMoved {
found: Option<String>,
},
PriorityHeld(Box<Task>),
Missing,
}Expand description
What became of one item of a batched write.
Variants§
Written(T)
It was written, and this is the source’s answer for it.
VersionMoved
It was at another version than the one it was held to, so nothing was written; found
is the version it is at.
PriorityHeld(Box<Task>)
Its priority was not one the write’s guard names, so nothing was written; this is the task as the source read it.
Missing
The source holds no such task.
Trait Implementations§
Source§impl<T: Clone> Clone for BatchAnswer<T>
impl<T: Clone> Clone for BatchAnswer<T>
Source§impl<T: Debug> Debug for BatchAnswer<T>
impl<T: Debug> Debug for BatchAnswer<T>
Source§impl<T: PartialEq> PartialEq for BatchAnswer<T>
impl<T: PartialEq> PartialEq for BatchAnswer<T>
impl<T: PartialEq> StructuralPartialEq for BatchAnswer<T>
Auto Trait Implementations§
impl<T> Forget for BatchAnswer<T>
impl<T> Freeze for BatchAnswer<T>where
T: Freeze,
impl<T> Move for BatchAnswer<T>
impl<T> RefUnwindSafe for BatchAnswer<T>where
T: RefUnwindSafe,
impl<T> Send for BatchAnswer<T>where
T: Send,
impl<T> Sync for BatchAnswer<T>where
T: Sync,
impl<T> Unpin for BatchAnswer<T>where
T: Unpin,
impl<T> UnsafeUnpin for BatchAnswer<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for BatchAnswer<T>where
T: 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