pub struct OptionalServices {
pub cache: Option<Arc<dyn Cache>>,
pub logger: Option<Arc<dyn Logger>>,
}Expand description
Optional services container for services not required at startup
Fields§
§cache: Option<Arc<dyn Cache>>§logger: Option<Arc<dyn Logger>>Implementations§
Source§impl OptionalServices
impl OptionalServices
pub fn new() -> Self
pub fn with_cache(self, cache: Arc<dyn Cache>) -> Self
pub fn with_logger(self, logger: Arc<dyn Logger>) -> Self
Auto Trait Implementations§
impl Freeze for OptionalServices
impl !RefUnwindSafe for OptionalServices
impl Send for OptionalServices
impl Sync for OptionalServices
impl Unpin for OptionalServices
impl !UnwindSafe for OptionalServices
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