pub enum DiscoveredStore {
Filesystem(FsStore),
}Expand description
An opened, read-only store discovered through the transactor.
Variants§
Implementations§
Source§impl DiscoveredStore
impl DiscoveredStore
Sourcepub async fn get(&self, id: &BlobId) -> Result<Option<Vec<u8>>, StoreError>
pub async fn get(&self, id: &BlobId) -> Result<Option<Vec<u8>>, StoreError>
Loads one immutable blob.
§Errors
Returns an error when the discovered backend cannot read the blob.
Sourcepub async fn list(&self) -> Result<BlobIdStream, StoreError>
pub async fn list(&self) -> Result<BlobIdStream, StoreError>
Lists every immutable blob in the discovered backend.
§Errors
Returns an error when the discovered backend cannot enumerate blobs.
Sourcepub async fn modified_at(
&self,
id: &BlobId,
) -> Result<Option<SystemTime>, StoreError>
pub async fn modified_at( &self, id: &BlobId, ) -> Result<Option<SystemTime>, StoreError>
Returns the blob’s backend modification time, when available.
§Errors
Returns an error when the discovered backend cannot inspect the blob.
Sourcepub async fn get_root(&self, name: &str) -> Result<Option<Vec<u8>>, StoreError>
pub async fn get_root(&self, name: &str) -> Result<Option<Vec<u8>>, StoreError>
Loads one named root record.
§Errors
Returns an error when the discovered backend cannot read the root.
Sourcepub async fn list_roots(&self, prefix: &str) -> Result<Vec<String>, StoreError>
pub async fn list_roots(&self, prefix: &str) -> Result<Vec<String>, StoreError>
Lists root names with prefix.
§Errors
Returns an error when the discovered backend cannot enumerate roots.
Auto Trait Implementations§
impl Freeze for DiscoveredStore
impl RefUnwindSafe for DiscoveredStore
impl Send for DiscoveredStore
impl Sync for DiscoveredStore
impl Unpin for DiscoveredStore
impl UnsafeUnpin for DiscoveredStore
impl UnwindSafe for DiscoveredStore
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request