pub struct IoParams {
pub optimal_buffersize: usize,
pub concurrent_operations: usize,
pub enable_async_io: bool,
pub enable_io_cache: bool,
}
Expand description
I/O optimization parameters
Fields§
§optimal_buffersize: usize
Optimal buffer size for I/O operations
concurrent_operations: usize
Number of concurrent I/O operations
enable_async_io: bool
Enable asynchronous I/O
enable_io_cache: bool
Enable I/O caching
Implementations§
Source§impl IoParams
impl IoParams
Sourcepub fn from_network(network: &NetworkInfo, storage: &StorageInfo) -> Self
pub fn from_network(network: &NetworkInfo, storage: &StorageInfo) -> Self
Generate I/O parameters from network and storage info
Sourcepub fn from_resources(network: &NetworkInfo, storage: &StorageInfo) -> Self
pub fn from_resources(network: &NetworkInfo, storage: &StorageInfo) -> Self
Generate I/O parameters from resources (alias for from_network)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IoParams
impl RefUnwindSafe for IoParams
impl Send for IoParams
impl Sync for IoParams
impl Unpin for IoParams
impl UnwindSafe for IoParams
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