pub struct RunBundleStore { /* private fields */ }Implementations§
Source§impl RunBundleStore
impl RunBundleStore
pub fn open(config: RunBundleStoreConfig) -> Result<Self, RunBundleStoreError>
pub fn config(&self) -> &RunBundleStoreConfig
pub fn bundle_path_for_run_id(&self, run_id: &str) -> PathBuf
pub fn bundle_path_for_run_id_and_digest( &self, run_id: &str, content_digest: &ContentDigest, ) -> PathBuf
pub fn write_bundle_value( &self, bundle: &Value, ) -> Result<RunBundleStoreRecord, RunBundleStoreError>
pub fn write_bundle<T: Serialize>( &self, bundle: &T, ) -> Result<RunBundleStoreRecord, RunBundleStoreError>
pub fn list_records( &self, ) -> Result<Vec<RunBundleStoreRecord>, RunBundleStoreError>
pub fn inspect( &self, run_id: &str, ) -> Result<RunBundleStoreInspection, RunBundleStoreError>
pub fn single_bundle_path(&self) -> Result<PathBuf, RunBundleStoreError>
Trait Implementations§
Source§impl Clone for RunBundleStore
impl Clone for RunBundleStore
Source§fn clone(&self) -> RunBundleStore
fn clone(&self) -> RunBundleStore
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 moreAuto Trait Implementations§
impl Freeze for RunBundleStore
impl RefUnwindSafe for RunBundleStore
impl Send for RunBundleStore
impl Sync for RunBundleStore
impl Unpin for RunBundleStore
impl UnsafeUnpin for RunBundleStore
impl UnwindSafe for RunBundleStore
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