#[repr(C)]pub enum OdError {
Ok = 0,
InvalidArgument = 1,
ModelLoadFailed = 2,
DetectionFailed = 3,
ImageConvertFailed = 4,
}Expand description
Error code returned by all functions.
Variants§
Ok = 0
No error.
InvalidArgument = 1
Null pointer or invalid dimension passed.
ModelLoadFailed = 2
ONNX model file could not be loaded.
DetectionFailed = 3
Inference failed at runtime.
ImageConvertFailed = 4
RGB pixel buffer could not be converted to Array3.
Trait Implementations§
impl Copy for OdError
impl Eq for OdError
impl StructuralPartialEq for OdError
Auto Trait Implementations§
impl Freeze for OdError
impl RefUnwindSafe for OdError
impl Send for OdError
impl Sync for OdError
impl Unpin for OdError
impl UnsafeUnpin for OdError
impl UnwindSafe for OdError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more