pub struct Publisher { /* private fields */ }
Implementations§
Source§impl Publisher
impl Publisher
pub async fn accept( session: Session, ) -> Result<(Session, Publisher), SessionError>
pub async fn connect( session: Session, ) -> Result<(Session, Publisher), SessionError>
Sourcepub async fn announce(
&mut self,
tracks: TracksReader,
) -> Result<(), SessionError>
pub async fn announce( &mut self, tracks: TracksReader, ) -> Result<(), SessionError>
Announce a namespace and serve tracks using the provided [serve::TracksReader]. The caller uses [serve::TracksWriter] for static tracks and [serve::TracksRequest] for dynamic tracks.
pub async fn serve_subscribe( subscribe: Subscribed, tracks: TracksReader, ) -> Result<(), SessionError>
pub async fn serve_track_status( track_status_request: TrackStatusRequested, tracks: TracksReader, ) -> Result<(), SessionError>
pub async fn subscribed(&mut self) -> Option<Subscribed>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Publisher
impl RefUnwindSafe for Publisher
impl Send for Publisher
impl Sync for Publisher
impl Unpin for Publisher
impl UnwindSafe for Publisher
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