pub enum SingletonError {
MoreThanOne,
NotPresent,
}Expand description
An error returned while retrieving a singleton service.
Variants§
MoreThanOne
There were more than one instances of the requested service.
NotPresent
The requested singleton service was not present.
Trait Implementations§
Source§impl Clone for SingletonError
impl Clone for SingletonError
Source§fn clone(&self) -> SingletonError
fn clone(&self) -> SingletonError
Returns a duplicate 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 moreSource§impl Debug for SingletonError
impl Debug for SingletonError
Source§impl PartialEq for SingletonError
impl PartialEq for SingletonError
impl Eq for SingletonError
impl StructuralPartialEq for SingletonError
Auto Trait Implementations§
impl Freeze for SingletonError
impl RefUnwindSafe for SingletonError
impl Send for SingletonError
impl Sync for SingletonError
impl Unpin for SingletonError
impl UnwindSafe for SingletonError
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