Struct parallel_disk_usage::app::sub::Sub
source · pub struct Sub<Data, GetData, Report>where
Data: Size + Into<u64> + Serialize + Send + Sync,
Report: ParallelReporter<Data> + Sync,
GetData: Fn(&Metadata) -> Data + Copy + Sync,
DataTreeReflection<String, Data>: Into<UnitAndTree>,{
pub files: Vec<PathBuf>,
pub json_output: bool,
pub bytes_format: Data::DisplayFormat,
pub direction: Direction,
pub bar_alignment: BarAlignment,
pub column_width_distribution: ColumnWidthDistribution,
pub max_depth: NonZeroUsize,
pub get_data: GetData,
pub reporter: Report,
pub min_ratio: Fraction,
pub no_sort: bool,
}Expand description
The sub program of the main application.
Fields§
§files: Vec<PathBuf>List of files and/or directories.
json_output: boolPrint JSON data instead of an ASCII chart.
bytes_format: Data::DisplayFormatFormat to be used to display the data.
direction: DirectionThe direction of the visualization.
bar_alignment: BarAlignmentThe alignment of the bars.
column_width_distribution: ColumnWidthDistributionDistribution and number of characters/blocks can be placed in a line.
max_depth: NonZeroUsizeMaximum number of levels that should be visualized.
get_data: GetDataReturns measured quantity of the files/directories.
reporter: ReportReports measurement progress.
min_ratio: FractionMinimal size proportion required to appear.
no_sort: boolPreserve order of entries.
Implementations§
source§impl<Data, GetData, Report> Sub<Data, GetData, Report>where
Data: Size + Into<u64> + Serialize + Send + Sync,
Report: ParallelReporter<Data> + Sync,
GetData: Fn(&Metadata) -> Data + Copy + Sync,
DataTreeReflection<String, Data>: Into<UnitAndTree>,
impl<Data, GetData, Report> Sub<Data, GetData, Report>where Data: Size + Into<u64> + Serialize + Send + Sync, Report: ParallelReporter<Data> + Sync, GetData: Fn(&Metadata) -> Data + Copy + Sync, DataTreeReflection<String, Data>: Into<UnitAndTree>,
sourcepub fn run(self) -> Result<(), RuntimeError>
pub fn run(self) -> Result<(), RuntimeError>
Run the sub program.
Auto Trait Implementations§
impl<Data, GetData, Report> RefUnwindSafe for Sub<Data, GetData, Report>where GetData: RefUnwindSafe, Report: RefUnwindSafe, <Data as Size>::DisplayFormat: RefUnwindSafe,
impl<Data, GetData, Report> Send for Sub<Data, GetData, Report>where GetData: Send, Report: Send, <Data as Size>::DisplayFormat: Send,
impl<Data, GetData, Report> Sync for Sub<Data, GetData, Report>where <Data as Size>::DisplayFormat: Sync,
impl<Data, GetData, Report> Unpin for Sub<Data, GetData, Report>where GetData: Unpin, Report: Unpin, <Data as Size>::DisplayFormat: Unpin,
impl<Data, GetData, Report> UnwindSafe for Sub<Data, GetData, Report>where GetData: UnwindSafe, Report: UnwindSafe, <Data as Size>::DisplayFormat: UnwindSafe,
Blanket Implementations§
source§impl<X> Pipe for X
impl<X> Pipe for X
source§fn pipe<Return, Function>(self, f: Function) -> Returnwhere
Self: Sized,
Function: FnOnce(Self) -> Return,
fn pipe<Return, Function>(self, f: Function) -> Returnwhere Self: Sized, Function: FnOnce(Self) -> Return,
source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere Function: FnOnce(&'a Self) -> Return,
source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere Function: FnOnce(&'a mut Self) -> Return,
source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere Self: AsRef<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read moresource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Returnwhere Self: AsMut<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read moresource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere Self: Deref<Target = Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read moresource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>( &'a mut self, f: Function ) -> Returnwhere Self: DerefMut<Target = Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait [DerefMut<Target = Param>]. Read moresource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere Self: Borrow<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> Return,
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read moresource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function ) -> Returnwhere Self: BorrowMut<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more