pub struct ContinuousResolver { /* private fields */ }Expand description
A resolver that keeps looking.
Implementations§
Source§impl ContinuousResolver
impl ContinuousResolver
Sourcepub fn new(query: &str, forget_after: f64) -> ContinuousResolver
pub fn new(query: &str, forget_after: f64) -> ContinuousResolver
Start looking for streams that match a query.
The thread stops when the resolver is dropped.
Sourcepub fn results(&self, max: usize) -> Vec<StreamInfo>
pub fn results(&self, max: usize) -> Vec<StreamInfo>
The streams that answered lately.
A stream whose last answer is older than forget_after is removed
here, not by the thread. liblsl does the same
(src/resolver_impl.cpp:151-168), so a caller that never asks keeps
every entry.
Trait Implementations§
Source§impl Drop for ContinuousResolver
impl Drop for ContinuousResolver
Auto Trait Implementations§
impl Freeze for ContinuousResolver
impl RefUnwindSafe for ContinuousResolver
impl Send for ContinuousResolver
impl Sync for ContinuousResolver
impl Unpin for ContinuousResolver
impl UnsafeUnpin for ContinuousResolver
impl UnwindSafe for ContinuousResolver
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