pub struct Services { /* private fields */ }Expand description
A collection of services.
Implementations§
Source§impl Services
impl Services
Sourcepub fn from_builder(builder: ServicesBuilder) -> Result<Self, Error>
pub fn from_builder(builder: ServicesBuilder) -> Result<Self, Error>
Attempts to make an instance of Services from a ServiceBuilder instance.
Source§impl Services
impl Services
Sourcepub fn resolve_all<T>(
&self,
) -> Option<impl DoubleEndedIterator<Item = Resolved<T>>>
pub fn resolve_all<T>( &self, ) -> Option<impl DoubleEndedIterator<Item = Resolved<T>>>
Returns a lazy iterator over all members of type T. If T is concrete, the iter will always contain a single element.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Services
impl !UnwindSafe for Services
impl Freeze for Services
impl Send for Services
impl Sync for Services
impl Unpin for Services
impl UnsafeUnpin for Services
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