pub enum EngineError {
Show 18 variants
LockBusy(&'static str),
LockBusyAfterRetry(&'static str),
BadSignature,
TokenExpired,
TokenUsesExhausted,
TokenNotFound(String),
RoleViolation {
role: Role,
verb: Verb,
},
TaskNotFound(String),
SessionNotFound,
ResumeKeyNotFound,
ResourceNotFound(String),
InvalidTransition(String),
DispatchFailed(String),
PollTimeout,
Cancelled,
SpawnDepthExceeded {
current: u32,
max: u32,
},
TokenTaskMismatch {
bound: String,
arg: String,
},
Internal(String),
}Expand description
All ways an engine operation can fail.
Variants§
LockBusy(&'static str)
A required lock was busy and the operation gave up without retrying.
LockBusyAfterRetry(&'static str)
A required lock was still busy after the configured retry budget was exhausted.
BadSignature
The presented CapToken’s HMAC signature did not verify.
TokenExpired
The presented CapToken is past its expire_at.
TokenUsesExhausted
The presented CapToken has no uses left (max_uses budget spent).
TokenNotFound(String)
No server-side record exists for the token’s nonce.
RoleViolation
The token’s Role is not allow-listed for the requested Verb (see
RoleVerbGate).
TaskNotFound(String)
No task exists with the given id.
SessionNotFound
No session is attached to the task.
ResumeKeyNotFound
The resume key presented does not match any pending resume point.
ResourceNotFound(String)
A generic named resource (other than task/session/token) was not found.
InvalidTransition(String)
The requested state transition is not valid from the task’s current state.
DispatchFailed(String)
Dispatching an attempt failed; the string carries the underlying reason.
PollTimeout
A poll operation exceeded its deadline without observing completion.
Cancelled
The task was cancelled.
SpawnDepthExceeded
A sub-task spawn would exceed the configured max_spawn_depth.
Fields
TokenTaskMismatch
The presented token is bound to a different task than the one referenced by the call.
Fields
Internal(String)
Catch-all for invariant violations that don’t have a dedicated variant yet.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<EngineError> for EnhanceApplicationError
impl From<EngineError> for EnhanceApplicationError
Source§fn from(source: EngineError) -> Self
fn from(source: EngineError) -> Self
Source§impl From<EngineError> for TaskLaunchError
impl From<EngineError> for TaskLaunchError
Source§fn from(source: EngineError) -> Self
fn from(source: EngineError) -> Self
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more