pub struct CatalogCache { /* private fields */ }Trait Implementations§
Source§impl Debug for CatalogCache
impl Debug for CatalogCache
Source§impl<'de> Deserialize<'de> for CatalogCache
impl<'de> Deserialize<'de> for CatalogCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PersistentData for CatalogCache
impl PersistentData for CatalogCache
Source§fn relative_path() -> PathBuf
fn relative_path() -> PathBuf
Only method required to implement PersistentData on an object. Always relative to
the config folder for Ajour.
Source§fn path() -> Result<PathBuf, FilesystemError>
fn path() -> Result<PathBuf, FilesystemError>
Returns the full file path. Will create any parent directories that don’t
exist.
Source§fn load() -> Result<Self, FilesystemError>
fn load() -> Result<Self, FilesystemError>
Load from
PersistentData::path().Source§fn load_or_default<T: PersistentData + Default>() -> Result<T, FilesystemError>
fn load_or_default<T: PersistentData + Default>() -> Result<T, FilesystemError>
Load from
PersistentData::path(). If file doesn’t exist, save it to the filesystem as Default
and return that object.Auto Trait Implementations§
impl Freeze for CatalogCache
impl RefUnwindSafe for CatalogCache
impl Send for CatalogCache
impl Sync for CatalogCache
impl Unpin for CatalogCache
impl UnwindSafe for CatalogCache
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more