pub enum LocalFileStatus {
Ready,
Missing,
Partial,
Invalid,
CannotCheck,
}Expand description
Status of one required model file (RFC-043 §7.2).
User-facing copy must not expose these names directly:
Ready→ “Ready”Missing→ “Needed”Partial→ “Needs to finish”Invalid→ “Needs to be replaced”CannotCheck→ “Could not check”
Variants§
Ready
File exists, is non-empty, and passes available validation.
Missing
File does not exist.
Partial
A .part temporary file exists but the final file is absent or empty.
Invalid
File exists but failed validation (empty, wrong type, corrupted).
CannotCheck
File access failed unexpectedly (permissions etc.).
Implementations§
Source§impl LocalFileStatus
impl LocalFileStatus
Sourcepub fn user_label(&self) -> &'static str
pub fn user_label(&self) -> &'static str
User-facing copy (RFC-043 §7.2, avoiding technical terms).
Sourcepub fn needs_work(&self) -> bool
pub fn needs_work(&self) -> bool
Whether this file needs any download or repair work.
Trait Implementations§
Source§impl Clone for LocalFileStatus
impl Clone for LocalFileStatus
Source§fn clone(&self) -> LocalFileStatus
fn clone(&self) -> LocalFileStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalFileStatus
impl Debug for LocalFileStatus
impl Eq for LocalFileStatus
Source§impl PartialEq for LocalFileStatus
impl PartialEq for LocalFileStatus
Source§fn eq(&self, other: &LocalFileStatus) -> bool
fn eq(&self, other: &LocalFileStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocalFileStatus
Auto Trait Implementations§
impl Freeze for LocalFileStatus
impl RefUnwindSafe for LocalFileStatus
impl Send for LocalFileStatus
impl Sync for LocalFileStatus
impl Unpin for LocalFileStatus
impl UnsafeUnpin for LocalFileStatus
impl UnwindSafe for LocalFileStatus
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