pub struct DayAlbums<T> { /* private fields */ }Expand description
Day album series under one root folder, loaded as files need them.
Implementations§
Source§impl<T: Smug> DayAlbums<T>
impl<T: Smug> DayAlbums<T>
Sourcepub fn new(smug: Arc<T>, root: Option<String>, dry_run: bool) -> Self
pub fn new(smug: Arc<T>, root: Option<String>, dry_run: bool) -> Self
root is the root folder’s node URI, or None if it doesn’t exist
(only on a dry run).
Sourcepub async fn day(&self, date: NaiveDate) -> Result<Arc<Day<T>>>
pub async fn day(&self, date: NaiveDate) -> Result<Arc<Day<T>>>
The album series for date, looking up its existing albums the
first time.
Sourcepub fn loaded_days(&self) -> Vec<Arc<Day<T>>>
pub fn loaded_days(&self) -> Vec<Arc<Day<T>>>
Every day loaded so far.
Auto Trait Implementations§
impl<T> !Freeze for DayAlbums<T>
impl<T> !RefUnwindSafe for DayAlbums<T>
impl<T> !UnwindSafe for DayAlbums<T>
impl<T> Send for DayAlbums<T>
impl<T> Sync for DayAlbums<T>
impl<T> Unpin for DayAlbums<T>
impl<T> UnsafeUnpin for DayAlbums<T>where
Arc<Inner<T>>: UnsafeUnpin,
Mutex<HashMap<NaiveDate, Arc<OnceCell<Arc<Day<T>>>>>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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