pub struct LgAlloc {
pub enabled: Option<bool>,
pub path: Option<PathBuf>,
pub background_config: Option<BackgroundWorkerConfig>,
}Expand description
Lgalloc configuration
Fields§
§enabled: Option<bool>Whether the allocator is enabled or not.
path: Option<PathBuf>Path where files reside.
background_config: Option<BackgroundWorkerConfig>Configuration of the background worker.
Implementations§
source§impl LgAlloc
impl LgAlloc
sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new configuration. All values are initialized to their default (None) values.
pub fn enable(&mut self) -> &mut Self
sourcepub fn with_background_config(
&mut self,
config: BackgroundWorkerConfig
) -> &mut Self
pub fn with_background_config( &mut self, config: BackgroundWorkerConfig ) -> &mut Self
Set the background worker configuration.
Trait Implementations§
source§impl PartialEq for LgAlloc
impl PartialEq for LgAlloc
impl Eq for LgAlloc
impl StructuralEq for LgAlloc
impl StructuralPartialEq for LgAlloc
Auto Trait Implementations§
impl RefUnwindSafe for LgAlloc
impl Send for LgAlloc
impl Sync for LgAlloc
impl Unpin for LgAlloc
impl UnwindSafe for LgAlloc
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