pub struct StreamOutlet { /* private fields */ }Expand description
A stream outlet. Creates a discoverable stream on the network.
Implementations§
Source§impl StreamOutlet
impl StreamOutlet
Sourcepub fn new(info: &StreamInfo, chunk_size: i32, _max_buffered: i32) -> Self
pub fn new(info: &StreamInfo, chunk_size: i32, _max_buffered: i32) -> Self
Create a new stream outlet.
Sourcepub fn info(&self) -> &StreamInfo
pub fn info(&self) -> &StreamInfo
Get the stream info
Sourcepub fn push_sample_f(&self, data: &[f32], timestamp: f64, pushthrough: bool)
pub fn push_sample_f(&self, data: &[f32], timestamp: f64, pushthrough: bool)
Push a single float sample
Sourcepub fn push_sample_d(&self, data: &[f64], timestamp: f64, pushthrough: bool)
pub fn push_sample_d(&self, data: &[f64], timestamp: f64, pushthrough: bool)
Push a single double sample
pub fn push_sample_i32(&self, data: &[i32], timestamp: f64, pushthrough: bool)
pub fn push_sample_i16(&self, data: &[i16], timestamp: f64, pushthrough: bool)
pub fn push_sample_i64(&self, data: &[i64], timestamp: f64, pushthrough: bool)
pub fn push_sample_str( &self, data: &[String], timestamp: f64, pushthrough: bool, )
pub fn push_sample_raw(&self, data: &[u8], timestamp: f64, pushthrough: bool)
Sourcepub fn push_chunk_f(&self, data: &[f32], timestamp: f64, pushthrough: bool)
pub fn push_chunk_f(&self, data: &[f32], timestamp: f64, pushthrough: bool)
Push a chunk of multiplexed float data
Sourcepub fn have_consumers(&self) -> bool
pub fn have_consumers(&self) -> bool
Check if there are consumers
Sourcepub fn wait_for_consumers(&self, timeout: f64) -> bool
pub fn wait_for_consumers(&self, timeout: f64) -> bool
Wait for consumers
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamOutlet
impl !RefUnwindSafe for StreamOutlet
impl Send for StreamOutlet
impl Sync for StreamOutlet
impl Unpin for StreamOutlet
impl UnsafeUnpin for StreamOutlet
impl !UnwindSafe for StreamOutlet
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