pub struct ResultStore { /* private fields */ }Expand description
Local bounded result artifact store.
Implementations§
Source§impl ResultStore
impl ResultStore
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn with_max_bytes(self, max_bytes: usize) -> Self
pub fn root(&self) -> &Path
pub fn next_id(prefix: &str) -> Result<String, ResultStoreError>
pub fn save( &self, result_id: &str, details: &Value, ) -> Result<DetailAvailability, ResultStoreError>
pub fn load(&self, result_id: &str) -> Result<ResultArtifact, ResultStoreError>
pub fn purge_older_than(&self, age: Duration) -> Result<usize, ResultStoreError>
Trait Implementations§
Source§impl Clone for ResultStore
impl Clone for ResultStore
Source§fn clone(&self) -> ResultStore
fn clone(&self) -> ResultStore
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 ResultStore
impl RefUnwindSafe for ResultStore
impl Send for ResultStore
impl Sync for ResultStore
impl Unpin for ResultStore
impl UnsafeUnpin for ResultStore
impl UnwindSafe for ResultStore
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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 more