pub struct Stream { /* private fields */ }Expand description
Handle returned by StreamBuilder providing access to the configured
packet source and statistics.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn socket(&self) -> Option<&UdpSocket>
pub fn socket(&self) -> Option<&UdpSocket>
Borrow the underlying UDP socket (returns None when using a custom transport).
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 for updates.
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.
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