pub struct Stream { /* private fields */ }Expand description
Handle returned by StreamBuilder: the bound socket and the negotiated
parameters, ready for FrameStream::new.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn params(&self) -> StreamParams
pub fn params(&self) -> StreamParams
Access the negotiated stream parameters.
Sourcepub fn stats_handle(&self) -> StreamStatsAccumulator
pub fn stats_handle(&self) -> StreamStatsAccumulator
Obtain a clone of the statistics accumulator handle.
Sourcepub fn stats(&self) -> StreamStats
pub fn stats(&self) -> StreamStats
Snapshot the collected statistics.
Sourcepub fn config(&self) -> &StreamConfig
pub fn config(&self) -> &StreamConfig
Immutable view of the stream configuration.
Sourcepub fn resend_enabled(&self) -> bool
pub fn resend_enabled(&self) -> bool
Whether the stream will ask the camera for lost packets.
Auto Trait Implementations§
impl !Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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