#[non_exhaustive]pub enum OrtDownloadError {
IoError(Error),
ContentLengthError,
CopyError {
expected: u64,
io: u64,
},
}
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
ContentLengthError
Error getting content-length from an HTTP GET request
CopyError
Mismatch between amount of downloaded and expected bytes
Trait Implementations§
Source§impl Debug for OrtDownloadError
impl Debug for OrtDownloadError
Source§impl Display for OrtDownloadError
impl Display for OrtDownloadError
Source§impl Error for OrtDownloadError
impl Error for OrtDownloadError
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 From<Error> for OrtDownloadError
impl From<Error> for OrtDownloadError
Source§impl From<OrtDownloadError> for OrtError
impl From<OrtDownloadError> for OrtError
Source§fn from(source: OrtDownloadError) -> Self
fn from(source: OrtDownloadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OrtDownloadError
impl !RefUnwindSafe for OrtDownloadError
impl Send for OrtDownloadError
impl Sync for OrtDownloadError
impl Unpin for OrtDownloadError
impl !UnwindSafe for OrtDownloadError
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