pub struct ProviderOwnership { /* private fields */ }Expand description
Associates a selected provider with its owning reachable module, if any.
Implementations§
Source§impl ProviderOwnership
impl ProviderOwnership
Sourcepub const fn provider_type_name(&self) -> &'static str
pub const fn provider_type_name(&self) -> &'static str
Returns the selected provider’s stable type name.
Sourcepub const fn module_type_name(&self) -> Option<&'static str>
pub const fn module_type_name(&self) -> Option<&'static str>
Returns the owning module type name, or None for an unowned provider.
Auto Trait Implementations§
impl Forget for ProviderOwnership
impl Freeze for ProviderOwnership
impl Move for ProviderOwnership
impl RefUnwindSafe for ProviderOwnership
impl Send for ProviderOwnership
impl Sync for ProviderOwnership
impl Unpin for ProviderOwnership
impl UnsafeUnpin for ProviderOwnership
impl UnwindSafe for ProviderOwnership
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