pub struct Media<'a, M: MediaItem> { /* private fields */ }Expand description
A single media format for a MediaItem.
Implementations§
Trait Implementations§
Source§impl<'a, M: Transcodable + MediaItem + Sync> Transcodable for Media<'a, M>
impl<'a, M: Transcodable + MediaItem + Sync> Transcodable for Media<'a, M>
type Options = <M as Transcodable>::Options
Source§async fn create_download_session(
&self,
options: M::Options,
) -> Result<TranscodeSession>
async fn create_download_session( &self, options: M::Options, ) -> Result<TranscodeSession>
Starts an offline transcode using the provided options. Read more
Source§async fn create_streaming_session(
&self,
protocol: Protocol,
options: M::Options,
) -> Result<TranscodeSession>
async fn create_streaming_session( &self, protocol: Protocol, options: M::Options, ) -> Result<TranscodeSession>
Starts a streaming transcode using of the given media part using the
streaming protocol and provided options. Read more
Source§async fn queue_download(
&self,
options: Self::Options,
download_queue: Option<&DownloadQueue>,
) -> Result<QueueItem>
async fn queue_download( &self, options: Self::Options, download_queue: Option<&DownloadQueue>, ) -> Result<QueueItem>
Queues this item for download using the provided download queue. Read more
Auto Trait Implementations§
impl<'a, M> Freeze for Media<'a, M>
impl<'a, M> !RefUnwindSafe for Media<'a, M>
impl<'a, M> Send for Media<'a, M>where
M: Send,
impl<'a, M> Sync for Media<'a, M>where
M: Sync,
impl<'a, M> Unpin for Media<'a, M>where
M: Unpin,
impl<'a, M> !UnwindSafe for Media<'a, M>
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