Struct parallel_disk_usage::reporter::error_report::ErrorReport
source · pub struct ErrorReport<'a> {
pub operation: Operation,
pub path: &'a Path,
pub error: Error,
}
Expand description
Information regarding a filesystem error.
Fields§
§operation: Operation
Operation that caused the error.
path: &'a Path
Path where the error occurred.
error: Error
The error.
Implementations§
source§impl<'a> ErrorReport<'a>
impl<'a> ErrorReport<'a>
sourcepub const TEXT: fn(_: ErrorReport<'_>) = {<[closure@src/reporter/error_report/text_report.rs:7:39: 7:47] as std::ops::FnOnce<(reporter::error_report::ErrorReport<'_>,)>>::call_once as for<'a> fn(reporter::error_report::ErrorReport<'a>)}
pub const TEXT: fn(_: ErrorReport<'_>) = {<[closure@src/reporter/error_report/text_report.rs:7:39: 7:47] as std::ops::FnOnce<(reporter::error_report::ErrorReport<'_>,)>>::call_once as for<'a> fn(reporter::error_report::ErrorReport<'a>)}
Prints error message in form of a line of text to stderr.
source§impl<'a> ErrorReport<'a>
impl<'a> ErrorReport<'a>
sourcepub const SILENT: fn(_: ErrorReport<'_>) = {<[closure@src/reporter/error_report.rs:20:41: 20:44] as std::ops::FnOnce<(reporter::error_report::ErrorReport<'_>,)>>::call_once as for<'a> fn(reporter::error_report::ErrorReport<'a>)}
pub const SILENT: fn(_: ErrorReport<'_>) = {<[closure@src/reporter/error_report.rs:20:41: 20:44] as std::ops::FnOnce<(reporter::error_report::ErrorReport<'_>,)>>::call_once as for<'a> fn(reporter::error_report::ErrorReport<'a>)}
Do nothing.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ErrorReport<'a>
impl<'a> Send for ErrorReport<'a>
impl<'a> Sync for ErrorReport<'a>
impl<'a> Unpin for ErrorReport<'a>
impl<'a> !UnwindSafe for ErrorReport<'a>
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