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> Freeze for ErrorReport<'a>
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<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> 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 moreSource§impl<X> Pipe for X
impl<X> Pipe for X
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) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> 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) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> 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) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> 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) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> 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,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more