pub enum WorkGraphError {
NotFound {
realm_id: String,
namespace: WorkNamespace,
id: WorkItemId,
},
AttentionNotFound {
realm_id: String,
namespace: WorkNamespace,
binding_id: WorkAttentionBindingId,
},
StaleRevision {
id: WorkItemId,
expected: u64,
actual: u64,
},
Conflict(String),
InvalidTransition(String),
InvalidInput(String),
InvalidTimestampMillis {
field: &'static str,
millis: i64,
},
Store(String),
UnsupportedBackend(String),
}Variants§
NotFound
AttentionNotFound
StaleRevision
Conflict(String)
InvalidTransition(String)
InvalidInput(String)
InvalidTimestampMillis
Store(String)
UnsupportedBackend(String)
Implementations§
Source§impl WorkGraphError
impl WorkGraphError
pub fn not_found( realm_id: String, namespace: WorkNamespace, id: WorkItemId, ) -> Self
pub fn attention_not_found( realm_id: String, namespace: WorkNamespace, binding_id: WorkAttentionBindingId, ) -> Self
Trait Implementations§
Source§impl Debug for WorkGraphError
impl Debug for WorkGraphError
Source§impl Display for WorkGraphError
impl Display for WorkGraphError
Source§impl Error for WorkGraphError
impl Error for WorkGraphError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for WorkGraphError
impl RefUnwindSafe for WorkGraphError
impl Send for WorkGraphError
impl Sync for WorkGraphError
impl Unpin for WorkGraphError
impl UnsafeUnpin for WorkGraphError
impl UnwindSafe for WorkGraphError
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