pub enum ProtectedOutcome<E = Value> {
Returned(Vec<Value>),
Raised(E),
}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(E)
The callable raised a mapped error value.
Trait Implementations§
Source§impl<E: Clone> Clone for ProtectedOutcome<E>
impl<E: Clone> Clone for ProtectedOutcome<E>
Source§fn clone(&self) -> ProtectedOutcome<E>
fn clone(&self) -> ProtectedOutcome<E>
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<E = Value> !RefUnwindSafe for ProtectedOutcome<E>
impl<E = Value> !UnwindSafe for ProtectedOutcome<E>
impl<E> Freeze for ProtectedOutcome<E>where
E: Freeze,
impl<E> Send for ProtectedOutcome<E>where
E: Send,
impl<E> Sync for ProtectedOutcome<E>where
E: Sync,
impl<E> Unpin for ProtectedOutcome<E>where
E: Unpin,
impl<E> UnsafeUnpin for ProtectedOutcome<E>where
E: UnsafeUnpin,
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