#[non_exhaustive]pub enum Provider {
RFn(RFnProvider),
RFnMut(RFnMutProvider),
RFnOnce(RFnOnceProvider),
Handle(Provider),
Lazy(Provider),
LazyBlob(Provider),
}
Expand description
A provider for any remote object.
This helps to store providers of different remote object types together. For example, you can keep providers of different types in a single vector.
Dropping the provider will stop making the object available remotely.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RFn(RFnProvider)
Available on crate feature
rfn
only.A provider for RFn.
RFnMut(RFnMutProvider)
Available on crate feature
rfn
only.A provider for RFnMut.
RFnOnce(RFnOnceProvider)
Available on crate feature
rfn
only.A provider for RFnOnce.
Handle(Provider)
Available on crate feature
robj
only.A provider for Handle.
Lazy(Provider)
Available on crate feature
robj
only.A provider for Lazy.
LazyBlob(Provider)
Available on crate feature
robj
only.A provider for LazyBlob.
Implementations§
Trait Implementations§
source§impl From<RFnMutProvider> for Provider
impl From<RFnMutProvider> for Provider
source§fn from(provider: RFnMutProvider) -> Self
fn from(provider: RFnMutProvider) -> Self
Converts to this type from the input type.
source§impl From<RFnOnceProvider> for Provider
impl From<RFnOnceProvider> for Provider
source§fn from(provider: RFnOnceProvider) -> Self
fn from(provider: RFnOnceProvider) -> Self
Converts to this type from the input type.
source§impl From<RFnProvider> for Provider
impl From<RFnProvider> for Provider
source§fn from(provider: RFnProvider) -> Self
fn from(provider: RFnProvider) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Provider
impl !RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl !UnwindSafe for Provider
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