pub enum FetchError {
InsecureUrl(String),
Transport(String),
HttpStatus(u16),
Io(Error),
HashMismatch {
expected: String,
actual: String,
quarantine_path: PathBuf,
},
Finalise(Error),
LockContended {
name: String,
},
NoSourceNoManifest {
name: String,
},
}Expand description
Errors produced by fetch_model.
Variants§
InsecureUrl(String)
source_url was not https://.
Transport(String)
HTTP transport error (DNS, TLS, refused connection).
HttpStatus(u16)
Server returned a non-success status.
Io(Error)
I/O error reading body or writing dest.
HashMismatch
SHA-256 mismatch between downloaded bytes and sha256_hex.
File has been moved into locks/quarantine/.
Fields
Finalise(Error)
Atomic rename of the partial into the final blob path failed.
LockContended
Another producer holds the per-name lock. Another daemon is currently fetching this same model.
NoSourceNoManifest
CLI-only mode: source_url is empty AND no manifest exists. Operator must either set source_url or pre-write a manifest + blob.
Trait Implementations§
Source§impl Debug for FetchError
impl Debug for FetchError
Source§impl Display for FetchError
impl Display for FetchError
Source§impl Error for FetchError
impl Error for FetchError
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 Freeze for FetchError
impl !RefUnwindSafe for FetchError
impl Send for FetchError
impl Sync for FetchError
impl Unpin for FetchError
impl UnsafeUnpin for FetchError
impl !UnwindSafe for FetchError
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