pub struct BroadcastBuilder { /* private fields */ }Expand description
The tracks registered before the PUBLISH_NAMESPACE, so that a SUBSCRIBE the relay forwards at once finds them.
Implementations§
Source§impl BroadcastBuilder
impl BroadcastBuilder
Sourcepub async fn publish_track(
&self,
name: &str,
options: PublishTrackOptions,
) -> Result<TrackWriter>
pub async fn publish_track( &self, name: &str, options: PublishTrackOptions, ) -> Result<TrackWriter>
A track the session answers SUBSCRIBE and FETCH for. Fails when
options.publish is set: a PUBLISH must follow PUBLISH_NAMESPACE, so
publish such a track on the LocalBroadcast.
pub async fn event_timeline( &self, name: &str, retention: Retention, ) -> Result<EventTimeline>
Sourcepub async fn announce(self) -> Result<LocalBroadcast>
pub async fn announce(self) -> Result<LocalBroadcast>
PUBLISH_NAMESPACE (draft-14 §9.23). Fails when the relay refuses it.
Auto Trait Implementations§
impl !RefUnwindSafe for BroadcastBuilder
impl !UnwindSafe for BroadcastBuilder
impl Freeze for BroadcastBuilder
impl Send for BroadcastBuilder
impl Sync for BroadcastBuilder
impl Unpin for BroadcastBuilder
impl UnsafeUnpin for BroadcastBuilder
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