pub struct ObjectStoreReader<H> { /* private fields */ }Expand description
Read-only handle into an ObjectStoreRemote that can be cloned and shared.
Trait Implementations§
Source§impl<H> BlobStoreGet<H> for ObjectStoreReader<H>where
H: HashProtocol,
impl<H> BlobStoreGet<H> for ObjectStoreReader<H>where
H: HashProtocol,
Source§type GetError<E: Error> = GetBlobErr<E>
type GetError<E: Error> = GetBlobErr<E>
Error type for get operations, parameterised by the deserialization error.
Source§fn get<T, S>(
&self,
handle: Value<Handle<H, S>>,
) -> Result<T, Self::GetError<<T as TryFromBlob<S>>::Error>>
fn get<T, S>( &self, handle: Value<Handle<H, S>>, ) -> Result<T, Self::GetError<<T as TryFromBlob<S>>::Error>>
Retrieves a blob from the repository by its handle.
The handle is a unique identifier for the blob, and is used to retrieve it from the repository.
The blob is returned as a
Blob object, which contains the raw bytes of the blob,
which can be deserialized via the appropriate schema type, which is specified by the T type parameter. Read moreSource§impl<H> BlobStoreList<H> for ObjectStoreReader<H>where
H: HashProtocol,
impl<H> BlobStoreList<H> for ObjectStoreReader<H>where
H: HashProtocol,
Source§type Err = ListBlobsErr
type Err = ListBlobsErr
Error type for listing operations.
Source§type Iter<'a> = BlockingIter<Result<Value<Handle<H, UnknownBlob>>, <ObjectStoreReader<H> as BlobStoreList<H>>::Err>>
type Iter<'a> = BlockingIter<Result<Value<Handle<H, UnknownBlob>>, <ObjectStoreReader<H> as BlobStoreList<H>>::Err>>
Iterator over blob handles in the store.
Source§impl<H> BlobStoreMeta<H> for ObjectStoreReader<H>where
H: HashProtocol,
impl<H> BlobStoreMeta<H> for ObjectStoreReader<H>where
H: HashProtocol,
Source§impl<H: Clone> Clone for ObjectStoreReader<H>
impl<H: Clone> Clone for ObjectStoreReader<H>
Source§fn clone(&self) -> ObjectStoreReader<H>
fn clone(&self) -> ObjectStoreReader<H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<H> Debug for ObjectStoreReader<H>
impl<H> Debug for ObjectStoreReader<H>
Source§impl<H> PartialEq for ObjectStoreReader<H>
impl<H> PartialEq for ObjectStoreReader<H>
impl<H> Eq for ObjectStoreReader<H>
Auto Trait Implementations§
impl<H> Freeze for ObjectStoreReader<H>
impl<H> !RefUnwindSafe for ObjectStoreReader<H>
impl<H> Send for ObjectStoreReader<H>where
H: Send,
impl<H> Sync for ObjectStoreReader<H>where
H: Sync,
impl<H> Unpin for ObjectStoreReader<H>where
H: Unpin,
impl<H> UnsafeUnpin for ObjectStoreReader<H>
impl<H> !UnwindSafe for ObjectStoreReader<H>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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