pub enum VisionError {
Malformed {
detail: String,
raw: RawBytes,
},
TimedOut,
TooLarge {
limit: i64,
},
UnacceptableContentType {
content_type: String,
},
Unreachable {
detail: String,
},
}Expand description
Why a body could not be read, or an image could not be retrieved.
Variants§
Malformed
The body could not be read, and here it is.
Fields
TimedOut
The source took too long.
TooLarge
What arrived is larger than this port will read.
UnacceptableContentType
What arrived is a content type this port does not accept.
Unreachable
The source could not be reached at all.
Trait Implementations§
Source§impl Clone for VisionError
impl Clone for VisionError
Source§fn clone(&self) -> VisionError
fn clone(&self) -> VisionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisionError
impl Debug for VisionError
Source§impl Display for VisionError
impl Display for VisionError
impl Eq for VisionError
Source§impl Error for VisionError
impl Error for VisionError
1.30.0 · 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()
Source§impl PartialEq for VisionError
impl PartialEq for VisionError
impl StructuralPartialEq for VisionError
Auto Trait Implementations§
impl Freeze for VisionError
impl RefUnwindSafe for VisionError
impl Send for VisionError
impl Sync for VisionError
impl Unpin for VisionError
impl UnsafeUnpin for VisionError
impl UnwindSafe for VisionError
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