pub struct ContextProviderHandle(pub Arc<dyn ContextProvider>);Expand description
Cordis-native handle for the process-wide ContextProvider.
Tuple Fields§
§0: Arc<dyn ContextProvider>Implementations§
Source§impl ContextProviderHandle
impl ContextProviderHandle
pub fn new(inner: Arc<dyn ContextProvider>) -> Self
pub fn inner(&self) -> &Arc<dyn ContextProvider> ⓘ
Trait Implementations§
Source§impl Clone for ContextProviderHandle
impl Clone for ContextProviderHandle
Source§fn clone(&self) -> ContextProviderHandle
fn clone(&self) -> ContextProviderHandle
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 ContextProviderHandle
impl !UnwindSafe for ContextProviderHandle
impl Freeze for ContextProviderHandle
impl Send for ContextProviderHandle
impl Sync for ContextProviderHandle
impl Unpin for ContextProviderHandle
impl UnsafeUnpin for ContextProviderHandle
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