pub struct FsckOptions<'a> {
pub fail_on_warning: bool,
pub halt_on_error: bool,
pub do_slow_passes: bool,
pub on_error: Box<dyn Fn(&FsckIssue) + Send + Sync + 'a>,
pub quiet: bool,
pub verbose: bool,
pub no_lock: bool,
}
Fields§
§fail_on_warning: bool
Whether to fail fsck if any warnings are encountered.
halt_on_error: bool
§do_slow_passes: bool
Whether to perform slower, more complete checks.
on_error: Box<dyn Fn(&FsckIssue) + Send + Sync + 'a>
A callback to be invoked for each detected error, e.g. to log the error.
quiet: bool
If true, suppress informational messages.
verbose: bool
Whether to be noisy as we do checks.
no_lock: bool
Don’t take the write lock. The caller needs to guarantee the filesystem isn’t changing.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FsckOptions<'a>
impl<'a> !RefUnwindSafe for FsckOptions<'a>
impl<'a> Send for FsckOptions<'a>
impl<'a> Sync for FsckOptions<'a>
impl<'a> Unpin for FsckOptions<'a>
impl<'a> !UnwindSafe for FsckOptions<'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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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