pub struct ServiceCollection { /* private fields */ }Implementations§
Source§impl ServiceCollection
impl ServiceCollection
pub fn insert<T>(&mut self, value: Arc<T>) -> Result<(), ServiceError>
pub fn contains<T>(&self) -> bool
pub fn get<T>(&self) -> Result<Arc<T>, ServiceError>
pub fn get_optional<T>(&self) -> Result<Option<Arc<T>>, ServiceError>
pub fn freeze(self) -> FrozenServices
Trait Implementations§
Source§impl Debug for ServiceCollection
impl Debug for ServiceCollection
Source§impl Default for ServiceCollection
impl Default for ServiceCollection
Source§fn default() -> ServiceCollection
fn default() -> ServiceCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceCollection
impl !UnwindSafe for ServiceCollection
impl Freeze for ServiceCollection
impl Send for ServiceCollection
impl Sync for ServiceCollection
impl Unpin for ServiceCollection
impl UnsafeUnpin for ServiceCollection
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