Struct coi::Registration
source · pub struct Registration<T> { /* private fields */ }
Expand description
A struct used to provide a registration to a container. It wraps a registration kind and a provider.
Implementations§
source§impl<T> Registration<T>
impl<T> Registration<T>
sourcepub fn new(kind: RegistrationKind, provider: T) -> Self
pub fn new(kind: RegistrationKind, provider: T) -> Self
Constructor for Registration
. For it to be useful, T
should impl Provide
.
Trait Implementations§
source§impl<T: Clone> Clone for Registration<T>
impl<T: Clone> Clone for Registration<T>
source§fn clone(&self) -> Registration<T>
fn clone(&self) -> Registration<T>
Returns a copy of the value. Read more
1.0.0 · 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<T> RefUnwindSafe for Registration<T>where
T: RefUnwindSafe,
impl<T> Send for Registration<T>where
T: Send,
impl<T> Sync for Registration<T>where
T: Sync,
impl<T> Unpin for Registration<T>where
T: Unpin,
impl<T> UnwindSafe for Registration<T>where
T: UnwindSafe,
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