pub struct Stream { /* private fields */ }Expand description
Handle returned by StreamBuilder providing access to the configured socket
and statistics.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn into_parts(
self,
) -> (UdpSocket, StreamStatsAccumulator, StreamParams, StreamConfig)
pub fn into_parts( self, ) -> (UdpSocket, StreamStatsAccumulator, StreamParams, StreamConfig)
Consume the stream and return the UDP socket together with the shared statistics handle.
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 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