#[repr(C)]pub enum Status {
Show 13 variants
Ok,
BadArg,
Invalid,
Unsupported,
Eof,
Io,
Oom,
UnsupportedA1lx,
UnsupportedA1op,
UnsupportedClap,
UnsupportedGrid,
UnsupportedIpro,
UnsupportedLsel,
}
Expand description
The return value to the C API
Any detail that needs to be communicated to the caller must be encoded here
since the Error
type’s associated data is part of the FFI.
Variants§
Ok
BadArg
Invalid
Unsupported
Eof
Io
Oom
UnsupportedA1lx
UnsupportedA1op
UnsupportedClap
UnsupportedGrid
UnsupportedIpro
UnsupportedLsel
Trait Implementations§
source§impl From<Status> for Error
impl From<Status> for Error
For convenience of creating an error for an unsupported feature which we want to communicate the specific feature back to the C API caller
source§impl PartialEq<Status> for Status
impl PartialEq<Status> for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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