pub struct Plan {Show 15 fields
pub library: Library,
pub tracks: Vec<PlanTrack>,
pub selected: Vec<usize>,
pub skipped: Vec<Skipped>,
pub settings_dir: Option<PathBuf>,
pub settings_files: Vec<&'static str>,
pub anlz_roots: Vec<PathBuf>,
pub anlz_files_indexed: usize,
pub device: PathBuf,
pub volume_root: bool,
pub filesystem: Option<FileSystem>,
pub partition_table: Option<PartitionTable>,
pub device_name: String,
pub cdjsafe: bool,
pub prune: bool,
}Fields§
§library: Library§tracks: Vec<PlanTrack>§selected: Vec<usize>Indices into library.playlists.
skipped: Vec<Skipped>§settings_dir: Option<PathBuf>None with no_settings.
settings_files: Vec<&'static str>Settings files to copy, already validated so a bad one fails before anything is written.
anlz_roots: Vec<PathBuf>§anlz_files_indexed: usize§device: PathBuf§volume_root: boolfalse when the device is a directory on the disk of its parent, such
as an empty mount point with no stick mounted on it.
filesystem: Option<FileSystem>Filesystem of the stick; None where it cannot be read, and when the
device is not a volume root.
partition_table: Option<PartitionTable>Partition table of the disk the stick’s volume is on, best effort. A
caller that cannot run diskutil or lsblk (a sandboxed app) can set
it itself before showing Plan::format_warnings.
device_name: String§cdjsafe: bool§prune: boolImplementations§
Source§impl Plan
impl Plan
Sourcepub fn generated(&self) -> usize
pub fn generated(&self) -> usize
Tracks whose analysis files will be generated rather than copied.
Sourcepub fn without_grid(&self) -> usize
pub fn without_grid(&self) -> usize
Generated tracks whose XML carries no beat grid (TEMPO), so they get
none on the stick either.
Sourcepub fn format_warnings(&self) -> Vec<FormatWarning>
pub fn format_warnings(&self) -> Vec<FormatWarning>
What the stick’s filesystem or partition table rules out (issue #184).
pub fn playlist_names(&self) -> Vec<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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
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> ⓘ
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> ⓘ
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