pub struct ConfigurationHandler { /* private fields */ }
Implementations§
Source§impl ConfigurationHandler
impl ConfigurationHandler
Sourcepub fn create<S>(&mut self, name: S) -> &mut Configuration
pub fn create<S>(&mut self, name: S) -> &mut Configuration
Create a Configuration
with a given name
.
Returns None
if configuration already exists.
Sourcepub fn create_with<S, F>(&mut self, name: S, configure: F) -> &mut Configuration
pub fn create_with<S, F>(&mut self, name: S, configure: F) -> &mut Configuration
Create a Configuration
with a given name
.
Returns None
if configuration already exists.
Sourcepub fn get<S>(&self, name: S) -> Option<&Configuration>
pub fn get<S>(&self, name: S) -> Option<&Configuration>
Get a reference configuration if it exists
Sourcepub fn get_mut<S>(&mut self, name: S) -> Option<&mut Configuration>
pub fn get_mut<S>(&mut self, name: S) -> Option<&mut Configuration>
Get a mutable reference to a configuration if it exists
Trait Implementations§
Source§impl Debug for ConfigurationHandler
impl Debug for ConfigurationHandler
impl Send for ConfigurationHandler
impl Sync for ConfigurationHandler
Auto Trait Implementations§
impl Freeze for ConfigurationHandler
impl RefUnwindSafe for ConfigurationHandler
impl Unpin for ConfigurationHandler
impl UnwindSafe for ConfigurationHandler
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
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more