pub struct RemoteBroadcast { /* private fields */ }Expand description
A namespace another publisher publishes, handed to a watch_broadcasts
handler.
Implementations§
Source§impl RemoteBroadcast
impl RemoteBroadcast
pub fn namespace(&self) -> &[String]
Sourcepub async fn catalogs(&self) -> Result<Catalogs, RequestError>
pub async fn catalogs(&self) -> Result<Catalogs, RequestError>
Each catalog the publisher writes, starting from the one the relay holds (a joining FETCH). Fails when the SUBSCRIBE fails.
Sourcepub fn follow(&self, name: &str, options: FollowOptions) -> FollowedTrack
pub fn follow(&self, name: &str, options: FollowOptions) -> FollowedTrack
The objects written after it subscribes. It subscribes again a second after the track ends or its SUBSCRIBE fails, as when the publisher leaves and another takes the track over.
Sourcepub fn event_timeline(
&self,
name: &str,
options: EventTimelineOptions,
) -> RemoteEventTimeline
pub fn event_timeline( &self, name: &str, options: EventTimelineOptions, ) -> RemoteEventTimeline
The records of an event timeline track (draft-ietf-moq-msf-02 §8),
starting from the first object of the current group (a Joining
FETCH), the whole timeline for one an EventTimeline writes, and
subscribing again as follow does.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteBroadcast
impl !UnwindSafe for RemoteBroadcast
impl Freeze for RemoteBroadcast
impl Send for RemoteBroadcast
impl Sync for RemoteBroadcast
impl Unpin for RemoteBroadcast
impl UnsafeUnpin for RemoteBroadcast
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