pub enum ErrHandling {
None,
ThrowResultErr,
ResultCatchHandler,
}Expand description
Method of error handling
Variants§
None
Do no special handling of errors, requiring users to return objects that represent errors as represented in WIT
ThrowResultErr
Require throwing of result error objects
ResultCatchHandler
Catch thrown errors and convert them into result<t,e> error variants
Trait Implementations§
Source§impl Clone for ErrHandling
impl Clone for ErrHandling
Source§fn clone(&self) -> ErrHandling
fn clone(&self) -> ErrHandling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrHandling
impl Debug for ErrHandling
Source§impl PartialEq for ErrHandling
impl PartialEq for ErrHandling
impl StructuralPartialEq for ErrHandling
Auto Trait Implementations§
impl Freeze for ErrHandling
impl RefUnwindSafe for ErrHandling
impl Send for ErrHandling
impl Sync for ErrHandling
impl Unpin for ErrHandling
impl UnsafeUnpin for ErrHandling
impl UnwindSafe for ErrHandling
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