pub struct PyObjectStore(/* private fields */);
Expand description
A wrapper around a Rust ObjectStore instance that allows any rust-native implementation of ObjectStore.
This will only accept ObjectStore instances created from the same library. See register_store_module.
Implementations§
Source§impl PyObjectStore
impl PyObjectStore
Sourcepub fn into_inner(self) -> Arc<dyn ObjectStore>
pub fn into_inner(self) -> Arc<dyn ObjectStore>
Consume self and return the underlying ObjectStore
.
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 AsRef<Arc<dyn ObjectStore>> for PyObjectStore
impl AsRef<Arc<dyn ObjectStore>> for PyObjectStore
Source§fn as_ref(&self) -> &Arc<dyn ObjectStore>
fn as_ref(&self) -> &Arc<dyn ObjectStore>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl From<PyObjectStore> for Arc<dyn ObjectStore>
impl From<PyObjectStore> for Arc<dyn ObjectStore>
Source§fn from(value: PyObjectStore) -> Self
fn from(value: PyObjectStore) -> Self
Converts to this type from the input type.
Source§impl<'py> FromPyObject<'py> for PyObjectStore
impl<'py> FromPyObject<'py> for PyObjectStore
Auto Trait Implementations§
impl Freeze for PyObjectStore
impl !RefUnwindSafe for PyObjectStore
impl Send for PyObjectStore
impl Sync for PyObjectStore
impl Unpin for PyObjectStore
impl !UnwindSafe for PyObjectStore
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<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
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