Struct nydus_api::http::BlobPrefetchConfig
source · [−]pub struct BlobPrefetchConfig {
pub enable: bool,
pub threads_count: usize,
pub merging_size: usize,
pub bandwidth_rate: u32,
}Expand description
Configuration information for blob data prefetching.
Fields
enable: boolWhether to enable blob data prefetching.
threads_count: usizeNumber of data prefetching working threads.
merging_size: usizeThe maximum size of a merged IO request.
bandwidth_rate: u32Network bandwidth rate limit in unit of Bytes and Zero means no limit.
Trait Implementations
sourceimpl Clone for BlobPrefetchConfig
impl Clone for BlobPrefetchConfig
sourcefn clone(&self) -> BlobPrefetchConfig
fn clone(&self) -> BlobPrefetchConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BlobPrefetchConfig
impl Debug for BlobPrefetchConfig
sourceimpl Default for BlobPrefetchConfig
impl Default for BlobPrefetchConfig
sourcefn default() -> BlobPrefetchConfig
fn default() -> BlobPrefetchConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BlobPrefetchConfig
impl<'de> Deserialize<'de> for BlobPrefetchConfig
sourcefn 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
sourceimpl Hash for BlobPrefetchConfig
impl Hash for BlobPrefetchConfig
sourceimpl PartialEq<BlobPrefetchConfig> for BlobPrefetchConfig
impl PartialEq<BlobPrefetchConfig> for BlobPrefetchConfig
sourcefn eq(&self, other: &BlobPrefetchConfig) -> bool
fn eq(&self, other: &BlobPrefetchConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BlobPrefetchConfig) -> bool
fn ne(&self, other: &BlobPrefetchConfig) -> bool
This method tests for !=.
sourceimpl Serialize for BlobPrefetchConfig
impl Serialize for BlobPrefetchConfig
impl Eq for BlobPrefetchConfig
impl StructuralEq for BlobPrefetchConfig
impl StructuralPartialEq for BlobPrefetchConfig
Auto Trait Implementations
impl RefUnwindSafe for BlobPrefetchConfig
impl Send for BlobPrefetchConfig
impl Sync for BlobPrefetchConfig
impl Unpin for BlobPrefetchConfig
impl UnwindSafe for BlobPrefetchConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more