Enum onnxruntime::error::OrtDownloadError [−][src]
#[non_exhaustive] pub enum OrtDownloadError { IoError(Error), UreqError(Box<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.
Generic input/output error
Tuple Fields of IoError
0: Error
Download error by ureq
Error getting content-length from an HTTP GET request
Mismatch between amount of downloaded and expected bytes
Fields of CopyError
Trait Implementations
Performs the conversion.