#[repr(u32)]pub enum or_error {
Show 13 variants
OR_ERROR_NONE = 0,
OR_ERROR_BUF_TOO_SMALL = 1,
OR_ERROR_NOTAREF = 2,
OR_ERROR_CANT_OPEN = 3,
OR_ERROR_CLOSED_STREAM = 4,
OR_ERROR_NOT_FOUND = 5,
OR_ERROR_INVALID_PARAM = 6,
OR_ERROR_INVALID_FORMAT = 7,
OR_ERROR_DECOMPRESSION = 8,
OR_ERROR_NOT_IMPLEMENTED = 9,
OR_ERROR_ALREADY_OPEN = 10,
OR_ERROR_UNKNOWN = 42,
OR_ERROR_LAST_ = 43,
}Expand description
@brief Error codes returned by libopenraw.
Variants§
OR_ERROR_NONE = 0
< no error
OR_ERROR_BUF_TOO_SMALL = 1
< Buffer is too small.
OR_ERROR_NOTAREF = 2
< The object is not ref
OR_ERROR_CANT_OPEN = 3
< Can’t open file. Check OS error codes
OR_ERROR_CLOSED_STREAM = 4
< Stream closed
OR_ERROR_NOT_FOUND = 5
< Requested “object” not found
OR_ERROR_INVALID_PARAM = 6
< Invalid parameter
OR_ERROR_INVALID_FORMAT = 7
< Invalid format
OR_ERROR_DECOMPRESSION = 8
< Decompression error
OR_ERROR_NOT_IMPLEMENTED = 9
< Function is not implemented
OR_ERROR_ALREADY_OPEN = 10
< Stream already open
OR_ERROR_UNKNOWN = 42
< Unknown error.
OR_ERROR_LAST_ = 43
Trait Implementations§
impl Copy for or_error
impl Eq for or_error
impl StructuralPartialEq for or_error
Auto Trait Implementations§
impl Freeze for or_error
impl RefUnwindSafe for or_error
impl Send for or_error
impl Sync for or_error
impl Unpin for or_error
impl UnwindSafe for or_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