pub enum SegmentationError {
Model {
backend: &'static str,
source: ModelError,
},
Load {
backend: &'static str,
model: String,
source: BackendError,
},
Inference {
backend: &'static str,
source: BackendError,
},
}Variants§
Trait Implementations§
Source§impl Debug for SegmentationError
impl Debug for SegmentationError
Source§impl Display for SegmentationError
impl Display for SegmentationError
Source§impl Error for SegmentationError
impl Error for SegmentationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SegmentationError
impl !UnwindSafe for SegmentationError
impl Freeze for SegmentationError
impl Send for SegmentationError
impl Sync for SegmentationError
impl Unpin for SegmentationError
impl UnsafeUnpin for SegmentationError
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