pub enum ImageLookup {
Found {
record: ImageRecord,
path: PathBuf,
},
FileMissing {
record: ImageRecord,
},
}Expand description
What the store found when asked for an image.
The record and the bytes are two facts rather than one: a record whose file has gone is a distinguishable answer rather than an error, because it is the answer that tells a caller the history is intact and the file is not.
Variants§
Found
The record, and the absolute path its bytes are at.
Fields
§
record: ImageRecordThe record.
FileMissing
The record, whose file is not where the record says it is.
Fields
§
record: ImageRecordThe record.
Trait Implementations§
Source§impl Clone for ImageLookup
impl Clone for ImageLookup
Source§impl Debug for ImageLookup
impl Debug for ImageLookup
impl Eq for ImageLookup
Source§impl PartialEq for ImageLookup
impl PartialEq for ImageLookup
impl StructuralPartialEq for ImageLookup
Auto Trait Implementations§
impl Forget for ImageLookup
impl Freeze for ImageLookup
impl Move for ImageLookup
impl RefUnwindSafe for ImageLookup
impl Send for ImageLookup
impl Sync for ImageLookup
impl Unpin for ImageLookup
impl UnsafeUnpin for ImageLookup
impl UnwindSafe for ImageLookup
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