pub struct InMemoryArtifactStore { /* private fields */ }Expand description
Cloneable bounded in-memory artifact store for tests and local processes.
Implementations§
Source§impl InMemoryArtifactStore
impl InMemoryArtifactStore
Sourcepub const fn with_max_artifact_bytes(self, limit: usize) -> Self
pub const fn with_max_artifact_bytes(self, limit: usize) -> Self
Replaces the per-artifact byte limit.
Trait Implementations§
Source§impl ArtifactStore for InMemoryArtifactStore
impl ArtifactStore for InMemoryArtifactStore
Source§fn put(
&self,
write: ArtifactWrite,
) -> ArtifactFuture<'_, Result<ArtifactRef, ArtifactError>>
fn put( &self, write: ArtifactWrite, ) -> ArtifactFuture<'_, Result<ArtifactRef, ArtifactError>>
Idempotently writes content and returns its integrity-bound reference.
Source§fn get(
&self,
reference: &ArtifactRef,
) -> ArtifactFuture<'_, Result<Artifact, ArtifactError>>
fn get( &self, reference: &ArtifactRef, ) -> ArtifactFuture<'_, Result<Artifact, ArtifactError>>
Loads and verifies one artifact.
Source§fn list(
&self,
scope: &ArtifactScope,
after: Option<&str>,
limit: u32,
) -> ArtifactFuture<'_, Result<ArtifactPage, ArtifactError>>
fn list( &self, scope: &ArtifactScope, after: Option<&str>, limit: u32, ) -> ArtifactFuture<'_, Result<ArtifactPage, ArtifactError>>
Lists one stable, bounded page inside one scope.
Source§fn delete(
&self,
scope: &ArtifactScope,
artifact_id: &str,
) -> ArtifactFuture<'_, Result<bool, ArtifactError>>
fn delete( &self, scope: &ArtifactScope, artifact_id: &str, ) -> ArtifactFuture<'_, Result<bool, ArtifactError>>
Idempotently deletes one artifact and its idempotency records.
Source§fn purge_expired(
&self,
scope: &ArtifactScope,
now_unix_ms: u64,
limit: u32,
) -> ArtifactFuture<'_, Result<u32, ArtifactError>>
fn purge_expired( &self, scope: &ArtifactScope, now_unix_ms: u64, limit: u32, ) -> ArtifactFuture<'_, Result<u32, ArtifactError>>
Deletes at most
limit expired artifacts in one scope.Source§impl Clone for InMemoryArtifactStore
impl Clone for InMemoryArtifactStore
Source§fn clone(&self) -> InMemoryArtifactStore
fn clone(&self) -> InMemoryArtifactStore
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 InMemoryArtifactStore
impl Debug for InMemoryArtifactStore
Auto Trait Implementations§
impl Freeze for InMemoryArtifactStore
impl RefUnwindSafe for InMemoryArtifactStore
impl Send for InMemoryArtifactStore
impl Sync for InMemoryArtifactStore
impl Unpin for InMemoryArtifactStore
impl UnsafeUnpin for InMemoryArtifactStore
impl UnwindSafe for InMemoryArtifactStore
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