Enum Lane Copy item path Source pub enum Lane {
Cheap,
Read,
Write,
}Expand description The three cost shapes a transfer can have, and the thing a lane floor
protects.
See OpClass::lane for why the split exists at all, and
Governor::lane_ceiling for what a floor actually reserves.
A ref advertisement: no pack, milliseconds, 4 MiB.
A pack out of the store — clone and fetch. Mostly page cache.
A pack in , and the indexer behind it — push and gc.
Every lane, in index order; the per-lane arrays are sized from this.
How many lanes there are.
Index into the per-lane arrays.
The name a log or a counter uses.
The slots of the governed limit this lane is guaranteed , as
limit * numerator / denominator, never below Lane::floor_min .
An eighth for cheap and a quarter for read: a write storm can take
at most five eighths of the box, so an ls-remote and a clone always
have somewhere to land. write reserves nothing, because it is the lane
that would starve the others and it is never the one that is starved —
whatever the other two are not using is its.
The smallest floor a lane keeps however small the limit is.
Two, not one: one slot means a single stuck operation closes the lane,
and a lane floor exists precisely so that a lane cannot be closed by
what is happening in another one.
This lane’s guaranteed slots under a governed limit of limit.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Checks if this value is equivalent to the given key.
Read more Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.