pub struct LocalBroadcast { /* private fields */ }Expand description
A published namespace; a media source’s tracks reach subscribers through
the MSF catalog. add_media_source and dropping it without close spawn
tasks (the latter withdraws the namespace), so call both inside the tokio
runtime.
Implementations§
Source§impl LocalBroadcast
impl LocalBroadcast
Sourcepub async fn publish_track(
&self,
name: &str,
options: PublishTrackOptions,
) -> Result<TrackWriter>
pub async fn publish_track( &self, name: &str, options: PublishTrackOptions, ) -> Result<TrackWriter>
As BroadcastBuilder::publish_track, with options.publish too.
pub async fn event_timeline( &self, name: &str, retention: Retention, ) -> Result<EventTimeline>
pub fn add_media_source(&self, options: MediaSourceOptions) -> MediaSource
Trait Implementations§
Source§impl Drop for LocalBroadcast
impl Drop for LocalBroadcast
Auto Trait Implementations§
impl !RefUnwindSafe for LocalBroadcast
impl !UnwindSafe for LocalBroadcast
impl Freeze for LocalBroadcast
impl Send for LocalBroadcast
impl Sync for LocalBroadcast
impl Unpin for LocalBroadcast
impl UnsafeUnpin for LocalBroadcast
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