Struct dittolive_ditto::error::FfiError
source · pub struct FfiError {
pub code: i32,
pub msg: String,
}
Expand description
Errors originating in FFI code.
Shadows the FFI’s CError type which doesn’t have a C Repr.
Fields§
§code: i32
§msg: String
Trait Implementations§
source§impl From<NonZeroI32> for FfiError
impl From<NonZeroI32> for FfiError
source§fn from(code: NonZeroI32) -> FfiError
fn from(code: NonZeroI32) -> FfiError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FfiError
impl Send for FfiError
impl Sync for FfiError
impl Unpin for FfiError
impl UnwindSafe for FfiError
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