pub struct ConfigValueGroup {
pub size_bytes: u64,
}Expand description
ConfigValueGroup struct containing all configurable values
Fields§
§size_bytes: u64Default chunk cache capacity: 10 GB or 0 depends on the build feature
Use the environment variable HF_XET_CHUNK_CACHE_SIZE_BYTES to set this value.
Implementations§
Source§impl ConfigValueGroup
impl ConfigValueGroup
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new instance with default values only (no environment variable overrides).
Sourcepub fn apply_env_overrides(&mut self)
pub fn apply_env_overrides(&mut self)
Apply environment variable overrides to this configuration group.
The group name is derived from the module path. For example, in module xet_config::groups::data,
the env var for TEST_INT would be HF_XET_DATA_TEST_INT.
Sourcepub fn field_names() -> &'static [&'static str]
pub fn field_names() -> &'static [&'static str]
Returns the list of field names in this configuration group.
Trait Implementations§
Source§impl AsRef<ConfigValueGroup> for ConfigValueGroup
impl AsRef<ConfigValueGroup> for ConfigValueGroup
Source§fn as_ref(&self) -> &ConfigValueGroup
fn as_ref(&self) -> &ConfigValueGroup
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ConfigValueGroup
impl Clone for ConfigValueGroup
Source§fn clone(&self) -> ConfigValueGroup
fn clone(&self) -> ConfigValueGroup
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 ConfigValueGroup
impl Debug for ConfigValueGroup
Auto Trait Implementations§
impl Freeze for ConfigValueGroup
impl RefUnwindSafe for ConfigValueGroup
impl Send for ConfigValueGroup
impl Sync for ConfigValueGroup
impl Unpin for ConfigValueGroup
impl UnsafeUnpin for ConfigValueGroup
impl UnwindSafe for ConfigValueGroup
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