pub struct ServiceDescriptor {
pub type_id: TypeId,
pub type_name: &'static str,
pub key: Option<String>,
pub factory: ServiceFactory,
pub lifetime: ServiceLifetime,
}Fields§
§type_id: TypeId§type_name: &'static str§key: Option<String>§factory: ServiceFactory§lifetime: ServiceLifetimeTrait Implementations§
Source§impl Clone for ServiceDescriptor
impl Clone for ServiceDescriptor
Source§fn clone(&self) -> ServiceDescriptor
fn clone(&self) -> ServiceDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ServiceDescriptor
impl !UnwindSafe for ServiceDescriptor
impl Freeze for ServiceDescriptor
impl Send for ServiceDescriptor
impl Sync for ServiceDescriptor
impl Unpin for ServiceDescriptor
impl UnsafeUnpin for ServiceDescriptor
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