#[non_exhaustive]pub struct DriveOptions {
pub max_gap: u64,
pub read_size: usize,
pub limits: IoLimits,
pub work_quota: WorkQuota,
}Expand description
Tuning for the drivers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_gap: u64Requested ranges closer than this are merged into one read (HTTP: 16–64 KiB).
read_size: usizeBytes read per round for a sequential request, on top of the decoder’s minimum.
limits: IoLimitsAdmission for driver-owned input. Defaults to historical unlimited behavior.
work_quota: WorkQuotaScheduling quota for async cursors and compute batches, independent of output draining.
Implementations§
Source§impl DriveOptions
impl DriveOptions
Sourcepub const fn new(max_gap: u64, read_size: usize) -> Self
pub const fn new(max_gap: u64, read_size: usize) -> Self
Options with the given coalescing gap and sequential read size.
Sourcepub const fn with_limits(self, limits: IoLimits) -> Self
pub const fn with_limits(self, limits: IoLimits) -> Self
Apply input admission to synchronous and asynchronous drivers alike.
Sourcepub const fn with_work_quota(self, quota: WorkQuota) -> Self
pub const fn with_work_quota(self, quota: WorkQuota) -> Self
Bound uninterrupted async work without coupling it to destination reads.
Trait Implementations§
Source§impl Clone for DriveOptions
impl Clone for DriveOptions
Source§fn clone(&self) -> DriveOptions
fn clone(&self) -> DriveOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DriveOptions
Source§impl Debug for DriveOptions
impl Debug for DriveOptions
Source§impl Default for DriveOptions
impl Default for DriveOptions
impl Eq for DriveOptions
Source§impl PartialEq for DriveOptions
impl PartialEq for DriveOptions
impl StructuralPartialEq for DriveOptions
Auto Trait Implementations§
impl Freeze for DriveOptions
impl RefUnwindSafe for DriveOptions
impl Send for DriveOptions
impl Sync for DriveOptions
impl Unpin for DriveOptions
impl UnsafeUnpin for DriveOptions
impl UnwindSafe for DriveOptions
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