pub struct ImageStore<F> { /* private fields */ }Implementations§
Source§impl<F> ImageStore<F>where
F: FetchImage,
impl<F> ImageStore<F>where
F: FetchImage,
pub fn new(path: Option<PathBuf>) -> Self
pub fn add(&self, image: &F, meta: &impl Serialize, blob: &[u8]) -> bool
pub fn get_all_debug(&self) -> Vec<StoredImage<String>>
pub fn get_id(&self, url: &str) -> Option<Uuid>
pub fn has_id(self, id: Uuid) -> bool
pub fn get<T>(self, id: Uuid) -> Option<StoredImage<T>>
pub fn remove(self, id: Uuid) -> bool
pub fn remove_url(self, url: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<F> !Freeze for ImageStore<F>
impl<F> !RefUnwindSafe for ImageStore<F>
impl<F> Send for ImageStore<F>where
F: Send,
impl<F> !Sync for ImageStore<F>
impl<F> Unpin for ImageStore<F>where
F: Unpin,
impl<F> !UnwindSafe for ImageStore<F>
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