pub struct TracksWriter {
pub info: Arc<Tracks>,
/* private fields */
}
Expand description
Publish new tracks for a broadcast by name.
Fields§
§info: Arc<Tracks>
Implementations§
Source§impl TracksWriter
impl TracksWriter
Sourcepub fn create(&mut self, track: &str) -> Option<TrackWriter>
pub fn create(&mut self, track: &str) -> Option<TrackWriter>
Create a new track with the given name, inserting it into the broadcast. None is returned if all TracksReaders have been dropped.
pub fn remove(&mut self, track: &str) -> Option<TrackReader>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TracksWriter
impl RefUnwindSafe for TracksWriter
impl Send for TracksWriter
impl Sync for TracksWriter
impl Unpin for TracksWriter
impl UnwindSafe for TracksWriter
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