pub enum ServiceLifetime {
Transient,
Scoped,
Singleton,
}Variants§
Trait Implementations§
Source§impl Clone for ServiceLifetime
impl Clone for ServiceLifetime
Source§fn clone(&self) -> ServiceLifetime
fn clone(&self) -> ServiceLifetime
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 moreimpl Copy for ServiceLifetime
Source§impl Debug for ServiceLifetime
impl Debug for ServiceLifetime
impl Eq for ServiceLifetime
Source§impl Hash for ServiceLifetime
impl Hash for ServiceLifetime
Source§impl PartialEq for ServiceLifetime
impl PartialEq for ServiceLifetime
Source§fn eq(&self, other: &ServiceLifetime) -> bool
fn eq(&self, other: &ServiceLifetime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceLifetime
Auto Trait Implementations§
impl Freeze for ServiceLifetime
impl RefUnwindSafe for ServiceLifetime
impl Send for ServiceLifetime
impl Sync for ServiceLifetime
impl Unpin for ServiceLifetime
impl UnsafeUnpin for ServiceLifetime
impl UnwindSafe for ServiceLifetime
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