pub enum ProtectedOutcome {
Returned(Vec<Value>),
Raised(Value),
}Expand description
Result of invoking a callable through a protected boundary.
Protected calls turn ordinary kernel call failures into language-neutral raised values supplied by the caller’s error mapper.
Variants§
Returned(Vec<Value>)
The callable returned normally.
Raised(Value)
The callable raised a mapped error value.
Trait Implementations§
Source§impl Clone for ProtectedOutcome
impl Clone for ProtectedOutcome
Source§fn clone(&self) -> ProtectedOutcome
fn clone(&self) -> ProtectedOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProtectedOutcome
impl !UnwindSafe for ProtectedOutcome
impl Freeze for ProtectedOutcome
impl Send for ProtectedOutcome
impl Sync for ProtectedOutcome
impl Unpin for ProtectedOutcome
impl UnsafeUnpin for ProtectedOutcome
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