pub struct RtmpResource<'a> { /* private fields */ }Expand description
The RTMP-out API: push a room to RTMP destinations. Reached via Client::rtmp.
Implementations§
Source§impl<'a> RtmpResource<'a>
impl<'a> RtmpResource<'a>
Sourcepub async fn start(
&self,
room_id: &str,
params: RtmpStartParams,
) -> Result<EgressHandle>
pub async fn start( &self, room_id: &str, params: RtmpStartParams, ) -> Result<EgressHandle>
Begins an RTMP livestream.
Sourcepub async fn stop(&self, target: impl Into<StopTarget>) -> Result<String>
pub async fn stop(&self, target: impl Into<StopTarget>) -> Result<String>
Stops an RTMP livestream. Accepts the start handle, or a bare room id.
Sourcepub async fn list(&self, params: RtmpListParams) -> Result<Page<Livestream>>
pub async fn list(&self, params: RtmpListParams) -> Result<Page<Livestream>>
Lists livestreams, one page at a time.
Sourcepub fn list_stream(
&self,
params: RtmpListParams,
) -> impl Stream<Item = Result<Livestream>> + Send
pub fn list_stream( &self, params: RtmpListParams, ) -> impl Stream<Item = Result<Livestream>> + Send
Lists livestreams, transparently fetching every page.
Sourcepub async fn get(&self, id: &str) -> Result<Livestream>
pub async fn get(&self, id: &str) -> Result<Livestream>
Fetches a livestream by id.
Trait Implementations§
Source§impl<'a> Clone for RtmpResource<'a>
impl<'a> Clone for RtmpResource<'a>
Source§fn clone(&self) -> RtmpResource<'a>
fn clone(&self) -> RtmpResource<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for RtmpResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RtmpResource<'a>
impl<'a> !UnwindSafe for RtmpResource<'a>
impl<'a> Freeze for RtmpResource<'a>
impl<'a> Send for RtmpResource<'a>
impl<'a> Sync for RtmpResource<'a>
impl<'a> Unpin for RtmpResource<'a>
impl<'a> UnsafeUnpin for RtmpResource<'a>
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