pub struct RecorderOptions {
pub lazy_record: bool,
pub capacity: usize,
pub manager: Option<Arc<Mutex<StateRecorderManager>>>,
pub persistence: Option<PersistenceOptions>,
}Expand description
Options for NumericStateRecorder and EnumStateRecorder
Fields§
§lazy_record: bool§capacity: usizeMaximum number of recorded values to store on a rolling basis.
manager: Option<Arc<Mutex<StateRecorderManager>>>Optional. If not set, the Recorder will be linked to this module’s singleton StateRecorderManager, which in turn corresponds to the singleton Inspector. If set, the manager supplied here will be used.
persistence: Option<PersistenceOptions>Trait Implementations§
Source§impl Default for RecorderOptions
impl Default for RecorderOptions
Source§fn default() -> RecorderOptions
fn default() -> RecorderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecorderOptions
impl !RefUnwindSafe for RecorderOptions
impl Send for RecorderOptions
impl Sync for RecorderOptions
impl Unpin for RecorderOptions
impl UnsafeUnpin for RecorderOptions
impl !UnwindSafe for RecorderOptions
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<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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