#[non_exhaustive]pub enum ObserverError {
BudgetExceeded,
CapabilityDenied(ObserverCapToken),
Trapped(&'static str),
Quarantined,
}Expand description
Observer execution outcome.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BudgetExceeded
Observer invocation exceeded the fuel budget. Surfaces only from sandbox-backed hosts; the no-op pass-through never returns this.
CapabilityDenied(ObserverCapToken)
Observer tried to import a host-fn not in its capability set. Rejected at module-load (linker pre-scan) or at the call site (host-fn capability check).
Trapped(&'static str)
Observer invocation trapped at the sandbox boundary — the host catches and quarantines without propagating the unwind (E15.a strengthening of L0 A22).
Quarantined
Observer was placed under quarantine. After repeated panic events
(host policy threshold), the observer is removed from the active
rotation and its module-digest blacklisted — terminal state
distinct from per-invocation Self::Trapped.
Trait Implementations§
Source§impl Debug for ObserverError
impl Debug for ObserverError
Source§impl Display for ObserverError
impl Display for ObserverError
Source§impl Error for ObserverError
impl Error for ObserverError
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 ObserverError
impl RefUnwindSafe for ObserverError
impl Send for ObserverError
impl Sync for ObserverError
impl Unpin for ObserverError
impl UnsafeUnpin for ObserverError
impl UnwindSafe for ObserverError
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