pub struct ValueGateStore { /* private fields */ }Implementations§
Source§impl ValueGateStore
impl ValueGateStore
pub fn record(&self, assessment: &ValueAssessment)
pub fn recent(&self, n: usize) -> Vec<ValueAssessment>
pub fn aggregate(&self) -> ValueAggregate
pub fn persist_path() -> PathBuf
pub fn append_to_disk(assessment: &ValueAssessment) -> Result<(), Error>
pub fn load_from_disk() -> Vec<ValueAssessment>
pub fn append_to_path( path: &Path, assessment: &ValueAssessment, ) -> Result<(), Error>
pub fn load_from_path(path: &Path) -> Vec<ValueAssessment>
Trait Implementations§
Source§impl Clone for ValueGateStore
impl Clone for ValueGateStore
Source§fn clone(&self) -> ValueGateStore
fn clone(&self) -> ValueGateStore
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 ValueGateStore
impl Debug for ValueGateStore
Source§impl Default for ValueGateStore
impl Default for ValueGateStore
Source§fn default() -> ValueGateStore
fn default() -> ValueGateStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for ValueGateStore
impl Freeze for ValueGateStorewhere
*const ArcInner<Mutex<VecDeque<ValueAssessment>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<VecDeque<ValueAssessment>>>>: Freeze,
impl Move for ValueGateStore
impl RefUnwindSafe for ValueGateStore
impl Send for ValueGateStore
impl Sync for ValueGateStore
impl Unpin for ValueGateStore
impl UnsafeUnpin for ValueGateStorewhere
*const ArcInner<Mutex<VecDeque<ValueAssessment>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<VecDeque<ValueAssessment>>>>: UnsafeUnpin,
impl UnwindSafe for ValueGateStore
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