pub struct Burst { /* private fields */ }Expand description
Collects the estimates of one burst and keeps the best one.
liblsl keeps the estimate with the lowest round-trip time and discards the
others (src/time_receiver.cpp:190-205). A fast exchange leaves less room
for an asymmetric delay.
Implementations§
Source§impl Burst
impl Burst
Sourcepub fn accept(&mut self, a: &Answer, t3: f64) -> bool
pub fn accept(&mut self, a: &Answer, t3: f64) -> bool
Take one answer.
An answer from another burst is dropped. SPEC.md 3.4,
src/time_receiver.cpp:166.
Sourcepub fn time_offset(&self) -> Option<f64>
pub fn time_offset(&self) -> Option<f64>
The offset that this burst produced.
liblsl stores the negative of the computed offset
(src/time_receiver.cpp:204).
Sourcepub fn uncertainty(&self) -> Option<f64>
pub fn uncertainty(&self) -> Option<f64>
The round-trip time of the best estimate. liblsl calls it the
uncertainty (src/time_receiver.cpp:204).
Sourcepub fn local_time(&self) -> Option<f64>
pub fn local_time(&self) -> Option<f64>
Local midpoint timestamp (t0 + t3) / 2 of the best estimate in this
burst, used by the opt-in drift clock (docs/roadmap.md, step 17).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Burst
impl Freeze for Burst
impl Move for Burst
impl RefUnwindSafe for Burst
impl Send for Burst
impl Sync for Burst
impl Unpin for Burst
impl UnsafeUnpin for Burst
impl UnwindSafe for Burst
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