pub struct SharedCfgBuilder { /* private fields */ }Expand description
Builder for SharedCfg.
Implementations§
Sourcepub fn service(self, name: &'static str) -> SharedCfgBuilder
pub fn service(self, name: &'static str) -> SharedCfgBuilder
Sets the service name.
Sourcepub fn add<T>(self, val: T) -> SharedCfgBuilderwhere
T: Configuration,
pub fn add<T>(self, val: T) -> SharedCfgBuilderwhere
T: Configuration,
Inserts a typed value into this configuration.
Replaces the existing value when the same type was already inserted.
Trait Implementations§
Source§fn from(cfg: SharedCfgBuilder) -> Cfg<T>
fn from(cfg: SharedCfgBuilder) -> Cfg<T>
Converts to this type from the input type.
Source§fn from(cfg: SharedCfgBuilder) -> SharedCfg
fn from(cfg: SharedCfgBuilder) -> SharedCfg
Converts to this type from the input type.
Auto Trait Implementations§
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