pub struct TracksReader {
pub info: Arc<Tracks>,
/* private fields */
}
Expand description
Subscribe to a broadcast by requesting tracks.
This can be cloned to create handles.
Fields§
§info: Arc<Tracks>
Implementations§
Source§impl TracksReader
impl TracksReader
Sourcepub fn subscribe(&mut self, name: &str) -> Option<TrackReader>
pub fn subscribe(&mut self, name: &str) -> Option<TrackReader>
Get or request a track from the broadcast by name. None is returned if TracksWriter or TracksRequest cannot fufill the request.
Trait Implementations§
Source§impl Clone for TracksReader
impl Clone for TracksReader
Source§fn clone(&self) -> TracksReader
fn clone(&self) -> TracksReader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TracksReader
impl RefUnwindSafe for TracksReader
impl Send for TracksReader
impl Sync for TracksReader
impl Unpin for TracksReader
impl UnwindSafe for TracksReader
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