pub struct ObservationStoreLimits { /* private fields */ }Expand description
Caller-visible bounds for strategy-visible observation history.
Implementations§
Source§impl ObservationStoreLimits
impl ObservationStoreLimits
pub fn new( max_retained: usize, max_per_boundary: usize, ) -> Result<Self, AnalysisError>
pub fn max_retained(self) -> usize
pub fn max_per_boundary(self) -> usize
Trait Implementations§
Source§impl Clone for ObservationStoreLimits
impl Clone for ObservationStoreLimits
Source§fn clone(&self) -> ObservationStoreLimits
fn clone(&self) -> ObservationStoreLimits
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 moreimpl Copy for ObservationStoreLimits
Source§impl Debug for ObservationStoreLimits
impl Debug for ObservationStoreLimits
Source§impl Default for ObservationStoreLimits
impl Default for ObservationStoreLimits
impl Eq for ObservationStoreLimits
Source§impl PartialEq for ObservationStoreLimits
impl PartialEq for ObservationStoreLimits
impl StructuralPartialEq for ObservationStoreLimits
Auto Trait Implementations§
impl Freeze for ObservationStoreLimits
impl RefUnwindSafe for ObservationStoreLimits
impl Send for ObservationStoreLimits
impl Sync for ObservationStoreLimits
impl Unpin for ObservationStoreLimits
impl UnsafeUnpin for ObservationStoreLimits
impl UnwindSafe for ObservationStoreLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.