pub enum AnyObjectStore {
PyObjectStore(PyObjectStore),
PyExternalObjectStore(PyExternalObjectStore),
}Expand description
A convenience wrapper around native and external ObjectStore instances.
Note that there may be performance differences between accepted variants here. If you wish to
only permit the highest-performance stores, use PyObjectStore directly as the parameter in
your signature.
Variants§
PyObjectStore(PyObjectStore)
A wrapper around a PyObjectStore.
PyExternalObjectStore(PyExternalObjectStore)
A wrapper around a PyExternalObjectStore.
Implementations§
Source§impl AnyObjectStore
impl AnyObjectStore
Sourcepub fn into_dyn(self) -> Arc<dyn ObjectStore>
pub fn into_dyn(self) -> Arc<dyn ObjectStore>
Consume self and return a reference-counted ObjectStore.
Trait Implementations§
Source§impl From<AnyObjectStore> for Arc<dyn ObjectStore>
impl From<AnyObjectStore> for Arc<dyn ObjectStore>
Source§fn from(value: AnyObjectStore) -> Self
fn from(value: AnyObjectStore) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnyObjectStore
impl !RefUnwindSafe for AnyObjectStore
impl Send for AnyObjectStore
impl Sync for AnyObjectStore
impl Unpin for AnyObjectStore
impl !UnwindSafe for AnyObjectStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more