pub struct Scanner { /* private fields */ }Expand description
Scanner for discovering audiobook folders in a directory tree
Implementations§
Source§impl Scanner
impl Scanner
Sourcepub fn with_cover_filenames(cover_filenames: Vec<String>) -> Self
pub fn with_cover_filenames(cover_filenames: Vec<String>) -> Self
Create scanner with custom cover filenames
Sourcepub fn from_config(config: &Config) -> Self
pub fn from_config(config: &Config) -> Self
Create scanner from config
Sourcepub fn scan_directory(&self, root: &Path) -> Result<Vec<BookFolder>>
pub fn scan_directory(&self, root: &Path) -> Result<Vec<BookFolder>>
Scan a directory for audiobook folders
Sourcepub fn scan_single_directory(&self, path: &Path) -> Result<BookFolder>
pub fn scan_single_directory(&self, path: &Path) -> Result<BookFolder>
Scan a single directory as an audiobook folder (for auto-detect mode)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scanner
impl RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl UnwindSafe for Scanner
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> 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