pub struct Error { /* private fields */ }Expand description
An untyped error that any std::error::Error converts into with ?.
An untyped error: any failure, reported to the consumer as throws any
(code -1) with its Display text.
Every std::error::Error converts into it with ?, so a function can
return Result<T, weaveffi::Error> and propagate any error type. (It
doesn’t implement std::error::Error itself, which is what lets that
conversion exist, as with anyhow::Error.)
Implementations§
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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