pub struct Streams { /* private fields */ }
Expand description
A set of streams, indexed by their local endpoint ID.
Implementations§
source§impl Streams
impl Streams
sourcepub fn as_new(&self) -> Self
pub fn as_new(&self) -> Self
Makes a copy of this set of streams, but with all streams copied with their states set to idle.
sourcepub fn insert(&mut self, stream: Stream)
pub fn insert(&mut self, stream: Stream)
Inserts a stream, indexing it by the local endpoint id. It replaces any other stream with the same endpoint id.
sourcepub fn get(&self, id: &StreamEndpointId) -> Option<&Stream>
pub fn get(&self, id: &StreamEndpointId) -> Option<&Stream>
Retrieves a reference to the Stream referenced by id
, if the stream exists,
sourcepub fn get_mut(&mut self, id: &StreamEndpointId) -> Option<&mut Stream>
pub fn get_mut(&mut self, id: &StreamEndpointId) -> Option<&mut Stream>
Retrieves a mutable reference to the Stream referenced by id
, if the stream exists,
sourcepub fn information(&self) -> Vec<StreamInformation>
pub fn information(&self) -> Vec<StreamInformation>
Returns a vector of information on all the contained streams.
sourcepub fn open(&self) -> impl Iterator<Item = &Stream>
pub fn open(&self) -> impl Iterator<Item = &Stream>
Returns streams that are in the open (established but not streaming) state
sourcepub fn compatible(
&self,
codec_config: MediaCodecConfig,
) -> impl Iterator<Item = &Stream>
pub fn compatible( &self, codec_config: MediaCodecConfig, ) -> impl Iterator<Item = &Stream>
Finds streams in the set which are compatible with codec_config
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Streams
impl !RefUnwindSafe for Streams
impl Send for Streams
impl !Sync for Streams
impl Unpin for Streams
impl !UnwindSafe for Streams
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