pub enum RunInstanceConstructionError {
InvalidRunId {
run_id: RunId,
},
InvalidTaskId {
task_id: TaskId,
},
ReadyScheduledAtAfterCreatedAt {
run_id: RunId,
scheduled_at: u64,
created_at: u64,
},
}Expand description
Typed validation errors returned by RunInstance constructors.
Variants§
InvalidRunId
The supplied RunId is nil/empty and therefore invalid.
InvalidTaskId
The supplied TaskId is nil/empty and therefore invalid.
ReadyScheduledAtAfterCreatedAt
A Ready run cannot be created with a future schedule instant.
Trait Implementations§
Source§impl Clone for RunInstanceConstructionError
impl Clone for RunInstanceConstructionError
Source§fn clone(&self) -> RunInstanceConstructionError
fn clone(&self) -> RunInstanceConstructionError
Returns a duplicate of the value. Read more
1.0.0 · 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 RunInstanceConstructionError
impl Debug for RunInstanceConstructionError
Source§impl Error for RunInstanceConstructionError
impl Error for RunInstanceConstructionError
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()
Source§impl PartialEq for RunInstanceConstructionError
impl PartialEq for RunInstanceConstructionError
Source§fn eq(&self, other: &RunInstanceConstructionError) -> bool
fn eq(&self, other: &RunInstanceConstructionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RunInstanceConstructionError
impl Eq for RunInstanceConstructionError
impl StructuralPartialEq for RunInstanceConstructionError
Auto Trait Implementations§
impl Freeze for RunInstanceConstructionError
impl RefUnwindSafe for RunInstanceConstructionError
impl Send for RunInstanceConstructionError
impl Sync for RunInstanceConstructionError
impl Unpin for RunInstanceConstructionError
impl UnsafeUnpin for RunInstanceConstructionError
impl UnwindSafe for RunInstanceConstructionError
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