pub struct Stream {
pub client: LivepeerClient,
pub urls: LivepeerUrls,
}Fields§
§client: LivepeerClient§urls: LivepeerUrlsImplementations§
Source§impl Stream
impl Stream
Sourcepub fn new(client: &LivepeerClient) -> Self
pub fn new(client: &LivepeerClient) -> Self
Sourcepub fn list_streams(self) -> Result<Streams, Error>
pub fn list_streams(self) -> Result<Streams, Error>
List all streams
§Returns
Result<crate::data::stream::Streams, errors::Error>- A list of streams or an error
Sourcepub fn get_stream_by_playback_id(
self,
playback_id: String,
admin: bool,
) -> Result<Value, Error>
pub fn get_stream_by_playback_id( self, playback_id: String, admin: bool, ) -> Result<Value, Error>
Trait Implementations§
Source§impl Stream for Stream
impl Stream for Stream
Source§fn list_streams(&self) -> Result<Streams, Error>
fn list_streams(&self) -> Result<Streams, Error>
List all streams
§Returns
Result<crate::data::stream::Streams, errors::Error>- A list of streams or an error
Source§fn get_stream_by_playback_id(
&self,
playback_id: String,
admin: bool,
) -> Result<Value, Error>
fn get_stream_by_playback_id( &self, playback_id: String, admin: bool, ) -> Result<Value, Error>
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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