pub enum RemovalError {
NotDeletable {
kind: SourceKind,
},
ModelBusy {
name: String,
},
StillDownloading {
name: String,
},
DaemonUnavailable(String),
DaemonDeleteFailed(String),
TrashFailed {
path: String,
reason: String,
},
}Expand description
Why a model could not be deleted.
Variants§
NotDeletable
The model’s kind is not something hedos can delete.
Fields
§
kind: SourceKindThe kind that can’t be deleted.
ModelBusy
The model is generating right now.
StillDownloading
The model is still downloading.
The Ollama daemon isn’t available to delete its model.
DaemonDeleteFailed(String)
The daemon refused or failed the delete.
TrashFailed
Moving a file to the trash failed.
Trait Implementations§
Source§impl Clone for RemovalError
impl Clone for RemovalError
Source§impl Debug for RemovalError
impl Debug for RemovalError
Source§impl Display for RemovalError
impl Display for RemovalError
impl Eq for RemovalError
Source§impl Error for RemovalError
impl Error for RemovalError
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 RemovalError
impl PartialEq for RemovalError
impl StructuralPartialEq for RemovalError
Auto Trait Implementations§
impl Freeze for RemovalError
impl RefUnwindSafe for RemovalError
impl Send for RemovalError
impl Sync for RemovalError
impl Unpin for RemovalError
impl UnsafeUnpin for RemovalError
impl UnwindSafe for RemovalError
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