Struct bdrck::configuration::Configuration
[−]
[src]
pub struct Configuration<T> { /* fields omitted */ }
Methods
impl<T: Clone + Serialize + DeserializeOwned> Configuration<T>
[src]
pub fn new(
id: Identifier,
default: T,
custom_path: Option<&Path>
) -> Result<Configuration<T>>
[src]
id: Identifier,
default: T,
custom_path: Option<&Path>
) -> Result<Configuration<T>>
ⓘImportant traits for &'a mut Rpub fn get(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
pub fn set(&mut self, config: T)
[src]
pub fn reset(&mut self)
[src]
pub fn persist(&self) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl<T> Send for Configuration<T> where
T: Send,
T: Send,
impl<T> Sync for Configuration<T> where
T: Sync,
T: Sync,