#[non_exhaustive]pub enum CallbackState {
Pending,
Enqueued,
FinishedOk,
}Available on crate feature
ent only.Expand description
State of a callback job of a Batch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pending
Not enqueued yet.
Enqueued
Enqueued by the server, because the jobs belonging to this batch have finished executing.
If a callback has been consumed, it’s status is still Enqueued.
If a callback has finished with failure, it’s status remains Enqueued.
FinishedOk
The enqueued callback job has been consumed and successfully executed.
Trait Implementations§
Source§impl Clone for CallbackState
impl Clone for CallbackState
Source§fn clone(&self) -> CallbackState
fn clone(&self) -> CallbackState
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 moreimpl Copy for CallbackState
Source§impl Debug for CallbackState
impl Debug for CallbackState
Source§impl<'de> Deserialize<'de> for CallbackState
impl<'de> Deserialize<'de> for CallbackState
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 Display for CallbackState
impl Display for CallbackState
impl Eq for CallbackState
Source§impl PartialEq for CallbackState
impl PartialEq for CallbackState
impl StructuralPartialEq for CallbackState
Auto Trait Implementations§
impl Freeze for CallbackState
impl RefUnwindSafe for CallbackState
impl Send for CallbackState
impl Sync for CallbackState
impl Unpin for CallbackState
impl UnsafeUnpin for CallbackState
impl UnwindSafe for CallbackState
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