Skip to main content

StreamOutlet

Struct StreamOutlet 

Source
pub struct StreamOutlet { /* private fields */ }
Expand description

A stream outlet. Creates a discoverable stream on the network.

Implementations§

Source§

impl StreamOutlet

Source

pub fn new(info: &StreamInfo, chunk_size: i32, _max_buffered: i32) -> Self

Create a new stream outlet.

Source

pub fn info(&self) -> &StreamInfo

Get the stream info

Source

pub fn push_sample_f(&self, data: &[f32], timestamp: f64, pushthrough: bool)

Push a single float sample

Source

pub fn push_sample_d(&self, data: &[f64], timestamp: f64, pushthrough: bool)

Push a single double sample

Source

pub fn push_sample_i32(&self, data: &[i32], timestamp: f64, pushthrough: bool)

Source

pub fn push_sample_i16(&self, data: &[i16], timestamp: f64, pushthrough: bool)

Source

pub fn push_sample_i64(&self, data: &[i64], timestamp: f64, pushthrough: bool)

Source

pub fn push_sample_str( &self, data: &[String], timestamp: f64, pushthrough: bool, )

Source

pub fn push_sample_raw(&self, data: &[u8], timestamp: f64, pushthrough: bool)

Source

pub fn push_chunk_f(&self, data: &[f32], timestamp: f64, pushthrough: bool)

Push a chunk of multiplexed float data

Source

pub fn have_consumers(&self) -> bool

Check if there are consumers

Source

pub fn wait_for_consumers(&self, timeout: f64) -> bool

Wait for consumers

Trait Implementations§

Source§

impl Drop for StreamOutlet

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.