pub struct WeightLoaderConfig {
pub enable_caching: bool,
pub cache_dir: Option<String>,
pub max_cache_size: Option<u64>,
pub max_concurrent_downloads: usize,
pub download_timeout_seconds: u64,
pub enable_integrity_checks: bool,
pub default_headers: HashMap<String, String>,
}Expand description
Weight loader configuration
Fields§
§enable_caching: boolEnable caching
cache_dir: Option<String>Cache directory
max_cache_size: Option<u64>Maximum cache size in bytes
max_concurrent_downloads: usizeNumber of concurrent downloads
download_timeout_seconds: u64Connection timeout for downloads
enable_integrity_checks: boolEnable integrity checks
default_headers: HashMap<String, String>Custom headers for HTTP requests
Trait Implementations§
Source§impl Clone for WeightLoaderConfig
impl Clone for WeightLoaderConfig
Source§fn clone(&self) -> WeightLoaderConfig
fn clone(&self) -> WeightLoaderConfig
Returns a duplicate 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 WeightLoaderConfig
impl Debug for WeightLoaderConfig
Source§impl<'de> Deserialize<'de> for WeightLoaderConfig
impl<'de> Deserialize<'de> for WeightLoaderConfig
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
Auto Trait Implementations§
impl Freeze for WeightLoaderConfig
impl RefUnwindSafe for WeightLoaderConfig
impl Send for WeightLoaderConfig
impl Sync for WeightLoaderConfig
impl Unpin for WeightLoaderConfig
impl UnsafeUnpin for WeightLoaderConfig
impl UnwindSafe for WeightLoaderConfig
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