Struct gitoxide_core::pack::verify::Context
source · pub struct Context<'a, W1: Write, W2: Write> {
pub output_statistics: Option<OutputFormat>,
pub out: W1,
pub err: W2,
pub thread_limit: Option<usize>,
pub mode: Mode,
pub algorithm: Algorithm,
pub should_interrupt: &'a AtomicBool,
pub object_hash: Kind,
}
Expand description
A general purpose context for many operations provided here
Fields§
§output_statistics: Option<OutputFormat>
If set, provide statistics to out
in the given format
out: W1
A stream to which to output operation results
err: W2
A stream to which to errors
thread_limit: Option<usize>
If set, don’t use more than this amount of threads. Otherwise, usually use as many threads as there are logical cores. A value of 0 is interpreted as no-limit
mode: Mode
§algorithm: Algorithm
§should_interrupt: &'a AtomicBool
§object_hash: Kind
Auto Trait Implementations§
impl<'a, W1, W2> Freeze for Context<'a, W1, W2>
impl<'a, W1, W2> RefUnwindSafe for Context<'a, W1, W2>where
W1: RefUnwindSafe,
W2: RefUnwindSafe,
impl<'a, W1, W2> Send for Context<'a, W1, W2>
impl<'a, W1, W2> Sync for Context<'a, W1, W2>
impl<'a, W1, W2> Unpin for Context<'a, W1, W2>
impl<'a, W1, W2> UnwindSafe for Context<'a, W1, W2>where
W1: UnwindSafe,
W2: UnwindSafe,
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 more