pub struct ContextSourceRef(/* private fields */);Expand description
Shared provider reference whose final release remains provider-controlled.
Implementations§
Source§impl ContextSourceRef
impl ContextSourceRef
pub fn new<T: ContextSource + 'static>(source: Arc<T>) -> Self
Trait Implementations§
Source§impl AsRef<dyn ContextSource> for ContextSourceRef
impl AsRef<dyn ContextSource> for ContextSourceRef
Source§fn as_ref(&self) -> &(dyn ContextSource + 'static)
fn as_ref(&self) -> &(dyn ContextSource + 'static)
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ContextSourceRef
impl Clone for ContextSourceRef
Source§impl Deref for ContextSourceRef
impl Deref for ContextSourceRef
Source§impl Drop for ContextSourceRef
impl Drop for ContextSourceRef
Source§impl<T: ContextSource + 'static> From<Arc<T>> for ContextSourceRef
impl<T: ContextSource + 'static> From<Arc<T>> for ContextSourceRef
Source§impl From<Arc<dyn ContextSource>> for ContextSourceRef
impl From<Arc<dyn ContextSource>> for ContextSourceRef
Source§fn from(source: Arc<dyn ContextSource>) -> Self
fn from(source: Arc<dyn ContextSource>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ContextSourceRef
impl !UnwindSafe for ContextSourceRef
impl Freeze for ContextSourceRef
impl Send for ContextSourceRef
impl Sync for ContextSourceRef
impl Unpin for ContextSourceRef
impl UnsafeUnpin for ContextSourceRef
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