pub struct StreamInlet { /* private fields */ }Expand description
A stream inlet. Receives data from a stream outlet.
Implementations§
Source§impl StreamInlet
impl StreamInlet
pub fn new( info: &StreamInfo, max_buflen: i32, max_chunklen: i32, recover: bool, ) -> Self
Sourcepub fn open_stream(&self, timeout: f64) -> Result<(), String>
pub fn open_stream(&self, timeout: f64) -> Result<(), String>
Open the data stream (connect to the outlet’s TCP port).
Sourcepub fn pull_sample_f(
&self,
buffer: &mut [f32],
timeout: f64,
) -> Result<f64, String>
pub fn pull_sample_f( &self, buffer: &mut [f32], timeout: f64, ) -> Result<f64, String>
Pull a single float sample. Returns the timestamp, or 0 on timeout.
pub fn pull_sample_d( &self, buffer: &mut [f64], timeout: f64, ) -> Result<f64, String>
pub fn pull_sample_i32( &self, buffer: &mut [i32], timeout: f64, ) -> Result<f64, String>
pub fn pull_sample_i16( &self, buffer: &mut [i16], timeout: f64, ) -> Result<f64, String>
pub fn pull_sample_i64( &self, buffer: &mut [i64], timeout: f64, ) -> Result<f64, String>
pub fn pull_sample_str( &self, timeout: f64, ) -> Result<(Vec<String>, f64), String>
pub fn close_stream(&self)
Sourcepub fn time_correction(&self, timeout: f64) -> f64
pub fn time_correction(&self, timeout: f64) -> f64
Estimate the clock offset between this machine and the outlet’s machine. Uses NTP-like probing against the outlet’s UDP service port.
pub fn set_postprocessing(&self, flags: u32)
pub fn samples_available(&self) -> u32
pub fn flush(&self) -> u32
pub fn was_clock_reset(&self) -> bool
pub fn smoothing_halftime(&self, value: f32)
pub fn get_fullinfo(&self, _timeout: f64) -> StreamInfo
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for StreamInlet
impl !RefUnwindSafe for StreamInlet
impl Send for StreamInlet
impl Sync for StreamInlet
impl Unpin for StreamInlet
impl UnsafeUnpin for StreamInlet
impl !UnwindSafe for StreamInlet
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