pub struct IoLimits {
pub max_read_bandwidth: Option<u64>,
pub max_write_bandwidth: Option<u64>,
pub max_iops: Option<u64>,
pub max_concurrent_io: Option<usize>,
pub io_priority: IoPriority,
pub io_scheduler: IoScheduler,
pub buffer_size: Option<usize>,
pub direct_io: bool,
pub compression: IoCompression,
}Expand description
I/O operation limits and constraints
Fields§
§max_read_bandwidth: Option<u64>Maximum read bandwidth in bytes per second
max_write_bandwidth: Option<u64>Maximum write bandwidth in bytes per second
max_iops: Option<u64>Maximum I/O operations per second
max_concurrent_io: Option<usize>Maximum concurrent I/O operations
io_priority: IoPriorityI/O priority level
io_scheduler: IoSchedulerI/O scheduler type
buffer_size: Option<usize>Buffer size for I/O operations
direct_io: boolEnable direct I/O
compression: IoCompressionEnable I/O compression
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IoLimits
impl RefUnwindSafe for IoLimits
impl Send for IoLimits
impl Sync for IoLimits
impl Unpin for IoLimits
impl UnwindSafe for IoLimits
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<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