pub struct StreamRelay { /* private fields */ }Expand description
A live relay forwarding one source LSL stream into a labstream Outlet.
Implementations§
Source§impl StreamRelay
impl StreamRelay
Sourcepub fn start(source: &StreamInfo, opts: RelayOptions) -> Result<StreamRelay>
pub fn start(source: &StreamInfo, opts: RelayOptions) -> Result<StreamRelay>
Attach to source, fetch its full <desc>, open a labstream
Outlet, and start forwarding packed samples with exact timestamps.
Sourcepub fn info(&self) -> &StreamInfo
pub fn info(&self) -> &StreamInfo
Description published by the relay outlet.
Sourcepub fn source_uid(&self) -> &str
pub fn source_uid(&self) -> &str
Instance identifier (uid) of the source stream being relayed.
Sourcepub fn source_name(&self) -> &str
pub fn source_name(&self) -> &str
Name of the source stream being relayed.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
True while the relay forwarding thread is running.
Sourcepub fn consumer_count(&self) -> usize
pub fn consumer_count(&self) -> usize
Number of downstream consumers connected to the relay outlet.
Sourcepub fn history_ram_bytes(&self) -> usize
pub fn history_ram_bytes(&self) -> usize
Bytes held by the relay outlet’s resume history in RAM.
Sourcepub fn history_disk_bytes(&self) -> u64
pub fn history_disk_bytes(&self) -> u64
Bytes held by the relay outlet’s resume history on disk.
Trait Implementations§
Source§impl Drop for StreamRelay
impl Drop for StreamRelay
Auto Trait Implementations§
impl !RefUnwindSafe for StreamRelay
impl !UnwindSafe for StreamRelay
impl Forget for StreamRelay
impl Freeze for StreamRelay
impl Move for StreamRelay
impl Send for StreamRelay
impl Sync for StreamRelay
impl Unpin for StreamRelay
impl UnsafeUnpin for StreamRelay
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