pub struct Tolerance {
pub time: Option<ToleranceFn>,
pub samprate: Option<ToleranceFn>,
}Expand description
Callbacks returning the time and sample rate tolerances used when merging records.
time returns a tolerance in seconds, samprate in Hertz. Each receives the record
being added. A return of 0.0 requires an exact match; a negative value is invalid and
the default is used. Without a callback the defaults are half a sample period and a
relative sample rate difference of 0.0001.
Fields§
§time: Option<ToleranceFn>Time tolerance in seconds.
samprate: Option<ToleranceFn>Sample rate tolerance in Hz.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tolerance
impl !UnwindSafe for Tolerance
impl Forget for Tolerance
impl Freeze for Tolerance
impl Move for Tolerance
impl Send for Tolerance
impl Sync for Tolerance
impl Unpin for Tolerance
impl UnsafeUnpin for Tolerance
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