pub struct StorageProviderRef(pub Rc<dyn IStorageProvider>);Expand description
A storage provider (IStorageProvider).
Tuple Fields§
§0: Rc<dyn IStorageProvider>Implementations§
Source§impl StorageProviderRef
impl StorageProviderRef
Sourcepub fn new(value: Rc<dyn IStorageProvider>) -> Self
pub fn new(value: Rc<dyn IStorageProvider>) -> Self
The handle of value.
Sourcepub fn get(&self) -> &Rc<dyn IStorageProvider>
pub fn get(&self) -> &Rc<dyn IStorageProvider>
The shared object.
Trait Implementations§
Source§impl Clone for StorageProviderRef
impl Clone for StorageProviderRef
Source§impl Debug for StorageProviderRef
impl Debug for StorageProviderRef
Source§impl Deref for StorageProviderRef
impl Deref for StorageProviderRef
Source§type Target = dyn IStorageProvider
type Target = dyn IStorageProvider
The resulting type after dereferencing.
Source§fn deref(&self) -> &(dyn IStorageProvider + 'static)
fn deref(&self) -> &(dyn IStorageProvider + 'static)
Dereferences the value.
Source§impl From<Rc<dyn IStorageProvider>> for StorageProviderRef
impl From<Rc<dyn IStorageProvider>> for StorageProviderRef
Source§fn from(value: Rc<dyn IStorageProvider>) -> Self
fn from(value: Rc<dyn IStorageProvider>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StorageProviderRef
impl !Send for StorageProviderRef
impl !Sync for StorageProviderRef
impl !UnwindSafe for StorageProviderRef
impl Freeze for StorageProviderRef
impl Unpin for StorageProviderRef
impl UnsafeUnpin for StorageProviderRef
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more