pub struct FileArtifactService { /* private fields */ }Expand description
Persist artifacts on the local filesystem.
Implementations§
Trait Implementations§
Source§impl ArtifactService for FileArtifactService
impl ArtifactService for FileArtifactService
Source§fn save<'life0, 'async_trait>(
&'life0 self,
req: SaveRequest,
) -> Pin<Box<dyn Future<Output = Result<SaveResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
req: SaveRequest,
) -> Pin<Box<dyn Future<Output = Result<SaveResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store a binary artifact, returning the version that was written.
Source§fn load<'life0, 'async_trait>(
&'life0 self,
req: LoadRequest,
) -> Pin<Box<dyn Future<Output = Result<LoadResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load<'life0, 'async_trait>(
&'life0 self,
req: LoadRequest,
) -> Pin<Box<dyn Future<Output = Result<LoadResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve a stored artifact by filename and optional version.
Source§fn delete<'life0, 'async_trait>(
&'life0 self,
req: DeleteRequest,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
req: DeleteRequest,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete an artifact (specific version or all versions).
Source§fn list<'life0, 'async_trait>(
&'life0 self,
req: ListRequest,
) -> Pin<Box<dyn Future<Output = Result<ListResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
req: ListRequest,
) -> Pin<Box<dyn Future<Output = Result<ListResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all artifact filenames in a session.
Source§fn versions<'life0, 'async_trait>(
&'life0 self,
req: VersionsRequest,
) -> Pin<Box<dyn Future<Output = Result<VersionsResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn versions<'life0, 'async_trait>(
&'life0 self,
req: VersionsRequest,
) -> Pin<Box<dyn Future<Output = Result<VersionsResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all available versions of a specific artifact.
Auto Trait Implementations§
impl Freeze for FileArtifactService
impl RefUnwindSafe for FileArtifactService
impl Send for FileArtifactService
impl Sync for FileArtifactService
impl Unpin for FileArtifactService
impl UnsafeUnpin for FileArtifactService
impl UnwindSafe for FileArtifactService
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