Struct garage_util::background::vars::BgVars
source · pub struct BgVars { /* private fields */ }
Implementations§
source§impl BgVars
impl BgVars
pub fn new() -> Self
pub fn register_rw<V, T, GF, SF>( &mut self, p: &PersisterShared<V>, name: &'static str, get_fn: GF, set_fn: SF )
pub fn register_ro<V, T, GF>( &mut self, p: &PersisterShared<V>, name: &'static str, get_fn: GF )
pub fn get(&self, var: &str) -> Result<String, Error>
pub fn get_all(&self) -> Vec<(&'static str, String)>
pub fn set(&self, var: &str, val: &str) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BgVars
impl !RefUnwindSafe for BgVars
impl Send for BgVars
impl Sync for BgVars
impl Unpin for BgVars
impl !UnwindSafe for BgVars
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