pub enum ResumeError {
UnknownProcess(ProcessId),
AlreadyStarted(ProcessId),
WaitOrderViolated(ProcessId),
}Expand description
Errors ResumeDriver returns instead of ever panicking or silently dropping a
call — this crate’s correctness posture requires a loud, typed error on every
rejected/invalid call, never a silent no-op.
Variants§
UnknownProcess(ProcessId)
AlreadyStarted(ProcessId)
SC-059: ResumeDriver::start was called a second time for a
ProcessId whose ProcessDescriptor::started CAS was already true
— rejected loudly rather than calling resume(Start) twice.
WaitOrderViolated(ProcessId)
NEW (Task 9, B-sched wave, ledger SC-125). A wait_order(...)-
suspended parent observed ProcessId complete out of its own
declared order — returned by ResumeDriver::on_child_done instead
of ever silently accepting the reordering or resuming the parent via
ResumeArg::WaitOrderSatisfied anyway.
Trait Implementations§
Source§impl Clone for ResumeError
impl Clone for ResumeError
impl Copy for ResumeError
Source§impl Debug for ResumeError
impl Debug for ResumeError
Source§impl Display for ResumeError
impl Display for ResumeError
impl Eq for ResumeError
Source§impl Error for ResumeError
impl Error for ResumeError
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 ResumeError
impl PartialEq for ResumeError
impl StructuralPartialEq for ResumeError
Auto Trait Implementations§
impl Freeze for ResumeError
impl RefUnwindSafe for ResumeError
impl Send for ResumeError
impl Sync for ResumeError
impl Unpin for ResumeError
impl UnsafeUnpin for ResumeError
impl UnwindSafe for ResumeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.