pub enum BlockError {
Mcp(String),
Mesh(String),
Io(Error),
Json(Error),
Script(String),
Deferred(String),
Timeout(String),
Runtime(String),
Bus(String),
Cancelled,
}Variants§
Mcp(String)
Mesh(String)
Io(Error)
Json(Error)
Script(String)
Deferred(String)
The script looked at what it needs and did not start — the raise a
block makes with job.defer(reason) (blocks/lib/job/init.lua), read
off the script failure by its prefix. The CLI exits 75 on it
(sysexits EX_TEMPFAIL) so the job manager records the run as
deferred rather than failed: nothing was done, and nothing was
wrong with the block. The payload is the reason.
Timeout(String)
Runtime(String)
Bus(String)
Cancelled
External BlockConfig.shutdown_token was cancelled while run()
was driving the script. The script may have been interrupted
mid-execution; in-flight handlers may have observed partial state.
Trait Implementations§
Source§impl Debug for BlockError
impl Debug for BlockError
Source§impl Display for BlockError
impl Display for BlockError
Source§impl Error for BlockError
impl Error for BlockError
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 From<Error> for BlockError
impl From<Error> for BlockError
Source§fn from(source: Error) -> BlockError
fn from(source: Error) -> BlockError
Converts to this type from the input type.
Source§impl From<Error> for BlockError
impl From<Error> for BlockError
Source§fn from(source: Error) -> BlockError
fn from(source: Error) -> BlockError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BlockError
impl !UnwindSafe for BlockError
impl Freeze for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl UnsafeUnpin for BlockError
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<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> ⓘ
Converts
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> ⓘ
Converts
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 moreimpl<T> MaybeSend for T
impl<T> MaybeSync for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.