pub struct ObjectStoreReader { /* private fields */ }Expand description
Read-only handle into an ObjectStoreRemote that can be cloned and shared.
Trait Implementations§
Source§impl BlobChildren for ObjectStoreReader
impl BlobChildren for ObjectStoreReader
Source§fn children(
&self,
handle: Inline<Handle<UnknownBlob>>,
) -> Vec<Inline<Handle<UnknownBlob>>>
fn children( &self, handle: Inline<Handle<UnknownBlob>>, ) -> Vec<Inline<Handle<UnknownBlob>>>
Return handles of blobs referenced by
handle that exist in this store.Source§impl BlobStoreGet for ObjectStoreReader
impl BlobStoreGet for ObjectStoreReader
Source§type GetError<E: Error + Send + Sync + 'static> = GetBlobErr<E>
type GetError<E: Error + Send + Sync + 'static> = GetBlobErr<E>
Error type for get operations, parameterised by the deserialization error.
Source§fn get<T, S>(
&self,
handle: Inline<Handle<S>>,
) -> Result<T, Self::GetError<<T as TryFromBlob<S>>::Error>>
fn get<T, S>( &self, handle: Inline<Handle<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 BlobStoreList for ObjectStoreReader
impl BlobStoreList for ObjectStoreReader
Source§type Err = ListBlobsErr
type Err = ListBlobsErr
Error type for listing operations.
Source§type Iter<'a> = BlockingIter<Result<Inline<Handle<UnknownBlob>>, <ObjectStoreReader as BlobStoreList>::Err>>
type Iter<'a> = BlockingIter<Result<Inline<Handle<UnknownBlob>>, <ObjectStoreReader as BlobStoreList>::Err>>
Iterator over blob handles in the store.
Source§fn blobs_diff<'a>(&'a self, _old: &Self) -> Self::Iter<'a>
fn blobs_diff<'a>(&'a self, _old: &Self) -> Self::Iter<'a>
Source§impl BlobStoreMeta for ObjectStoreReader
impl BlobStoreMeta for ObjectStoreReader
Source§impl Clone for ObjectStoreReader
impl Clone for ObjectStoreReader
Source§fn clone(&self) -> ObjectStoreReader
fn clone(&self) -> ObjectStoreReader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectStoreReader
impl Debug for ObjectStoreReader
impl Eq for ObjectStoreReader
Source§impl PartialEq for ObjectStoreReader
impl PartialEq for ObjectStoreReader
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectStoreReader
impl !UnwindSafe for ObjectStoreReader
impl Freeze for ObjectStoreReader
impl Send for ObjectStoreReader
impl Sync for ObjectStoreReader
impl Unpin for ObjectStoreReader
impl UnsafeUnpin for ObjectStoreReader
Blanket Implementations§
impl<T> ArchiveOwner for T
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 moreSource§impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
Source§fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
Run the conversion.