Enum ort::FetchModelError
source · #[non_exhaustive]pub enum FetchModelError {
IoError(Error),
FetchError(Box<Error>),
ContentLengthError,
CopyError {
expected: u64,
io: u64,
},
}
Available on crate feature
fetch-models
only.Expand description
Error from downloading pre-trained model from the ONNX Model Zoo.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError(Error)
Generic input/output error
FetchError(Box<Error>)
Download error by ureq
ContentLengthError
Error getting Content-Length from HTTP GET request.
CopyError
Mismatch between amount of downloaded and expected bytes.
Trait Implementations§
source§impl Debug for FetchModelError
impl Debug for FetchModelError
source§impl Display for FetchModelError
impl Display for FetchModelError
source§impl Error for FetchModelError
impl Error for FetchModelError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<Error> for FetchModelError
impl From<Error> for FetchModelError
source§impl From<FetchModelError> for Error
impl From<FetchModelError> for Error
source§fn from(source: FetchModelError) -> Self
fn from(source: FetchModelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FetchModelError
impl !RefUnwindSafe for FetchModelError
impl Send for FetchModelError
impl Sync for FetchModelError
impl Unpin for FetchModelError
impl !UnwindSafe for FetchModelError
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