pub struct ServiceEntry {
pub cache_key: usize,
pub key: Option<ServiceKey>,
pub type_name: &'static str,
pub factory: ServiceFactory,
pub keyed_factory: Option<KeyedServiceFactory>,
pub async_factory: Option<AsyncServiceFactory>,
pub lifetime: ServiceLifetime,
}Fields§
§cache_key: usize§key: Option<ServiceKey>§type_name: &'static str§factory: ServiceFactoryPrimary sync factory (typed, resolver-only).
keyed_factory: Option<KeyedServiceFactory>AnyKey fallback factory; receives the requested key.
async_factory: Option<AsyncServiceFactory>§lifetime: ServiceLifetimeAuto Trait Implementations§
impl !RefUnwindSafe for ServiceEntry
impl !UnwindSafe for ServiceEntry
impl Forget for ServiceEntry
impl Freeze for ServiceEntry
impl Move for ServiceEntry
impl Send for ServiceEntry
impl Sync for ServiceEntry
impl Unpin for ServiceEntry
impl UnsafeUnpin for ServiceEntry
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