pub enum ChildClass {
Plumbing,
Object,
}Expand description
What: The kind of a Git step, which decides its bound and when its first notice comes. Why: The two kinds differ by orders of magnitude in how long a healthy step takes.
In TS you’d write (pseudocode):
type ChildClass = 'plumbing' | 'object';Variants§
Plumbing
A query of refs, commits and trees.
Object
A step that writes objects, compares the index with the worktree, or is not known to be a query.
Implementations§
Source§impl ChildClass
impl ChildClass
Sourcepub fn default_limit(self) -> Duration
pub fn default_limit(self) -> Duration
How long a step of this class may run when the variable is absent or unusable.
Sourcepub fn notice_grace(self) -> Duration
pub fn notice_grace(self) -> Duration
How long a step of this class runs before its first notice.
Sourcepub fn limit_from(self, value: Option<&OsStr>) -> Duration
pub fn limit_from(self, value: Option<&OsStr>) -> Duration
The bound for a value of the variable: the person’s whole seconds, or this class’s default for a missing, zero or malformed value, never “no limit”.
Trait Implementations§
Source§impl Clone for ChildClass
impl Clone for ChildClass
impl Copy for ChildClass
Source§impl Debug for ChildClass
impl Debug for ChildClass
impl Eq for ChildClass
Source§impl PartialEq for ChildClass
impl PartialEq for ChildClass
impl StructuralPartialEq for ChildClass
Auto Trait Implementations§
impl Freeze for ChildClass
impl RefUnwindSafe for ChildClass
impl Send for ChildClass
impl Sync for ChildClass
impl Unpin for ChildClass
impl UnsafeUnpin for ChildClass
impl UnwindSafe for ChildClass
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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