Struct nydus_api::config::PrefetchConfigV2
source · pub struct PrefetchConfigV2 {
pub enable: bool,
pub threads: usize,
pub batch_size: usize,
pub bandwidth_limit: u32,
pub prefetch_all: bool,
}Expand description
Configuration information for blob data prefetching.
Fields§
§enable: boolWhether to enable blob data prefetching.
threads: usizeNumber of data prefetching working threads.
batch_size: usizeThe batch size to prefetch data from backend.
bandwidth_limit: u32Network bandwidth rate limit in unit of Bytes and Zero means no limit.
prefetch_all: boolPrefetch all data from backend.
Trait Implementations§
source§impl Clone for PrefetchConfigV2
impl Clone for PrefetchConfigV2
source§fn clone(&self) -> PrefetchConfigV2
fn clone(&self) -> PrefetchConfigV2
Returns a copy 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 PrefetchConfigV2
impl Debug for PrefetchConfigV2
source§impl Default for PrefetchConfigV2
impl Default for PrefetchConfigV2
source§fn default() -> PrefetchConfigV2
fn default() -> PrefetchConfigV2
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PrefetchConfigV2
impl<'de> Deserialize<'de> for PrefetchConfigV2
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for PrefetchConfigV2
impl Hash for PrefetchConfigV2
source§impl PartialEq<PrefetchConfigV2> for PrefetchConfigV2
impl PartialEq<PrefetchConfigV2> for PrefetchConfigV2
source§fn eq(&self, other: &PrefetchConfigV2) -> bool
fn eq(&self, other: &PrefetchConfigV2) -> bool
This method tests for
self and other values to be equal, and is used
by ==.