pub struct TransferLimits {
pub uploads: NonZeroUsize,
pub downloads: NonZeroUsize,
}Expand description
How many blob transfers coven runs at once in each of its two transfer loops:
the upload drain and the pin/download loop. An
open-time blob-engine tunable the host sets on the builder,
carried on the Database alongside the other open-time
blob config and read back by each loop, which holds &Database.
Each bound is a NonZeroUsize, so a zero — which would leave a loop admitting
nothing and never completing — is unrepresentable rather than clamped or rejected
at open. one_at_a_time() (both 1) is the default: transfers run one at a
time in queue order.
Fields§
§uploads: NonZeroUsizeMaximum concurrent blob uploads in one upload-drain pass.
downloads: NonZeroUsizeMaximum concurrent blob downloads (fetches) in one pin call.
Implementations§
Source§impl TransferLimits
impl TransferLimits
Sourcepub fn one_at_a_time() -> Self
pub fn one_at_a_time() -> Self
One at a time in each loop.
Trait Implementations§
Source§impl Clone for TransferLimits
impl Clone for TransferLimits
Source§fn clone(&self) -> TransferLimits
fn clone(&self) -> TransferLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferLimits
impl Debug for TransferLimits
Source§impl PartialEq for TransferLimits
impl PartialEq for TransferLimits
impl Copy for TransferLimits
impl Eq for TransferLimits
impl StructuralPartialEq for TransferLimits
Auto Trait Implementations§
impl Freeze for TransferLimits
impl RefUnwindSafe for TransferLimits
impl Send for TransferLimits
impl Sync for TransferLimits
impl Unpin for TransferLimits
impl UnsafeUnpin for TransferLimits
impl UnwindSafe for TransferLimits
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.