pub struct Track { /* private fields */ }Implementations§
Trait Implementations§
Source§impl FromMetadata for Track
impl FromMetadata for Track
Source§fn from_metadata(client: HttpClient, metadata: Metadata) -> Self
fn from_metadata(client: HttpClient, metadata: Metadata) -> Self
Creates an item given the http configuration and item metadata. No
validation is performed that the metadata is correct.
Source§impl MetadataItem for Track
impl MetadataItem for Track
Source§impl Transcodable for Track
impl Transcodable for Track
type Options = MusicTranscodeOptions
Source§async fn create_download_session(
&self,
options: Self::Options,
) -> Result<TranscodeSession>
async fn create_download_session( &self, options: Self::Options, ) -> Result<TranscodeSession>
Starts an offline transcode using the provided options. Read more
Source§async fn create_streaming_session(
&self,
protocol: Protocol,
options: Self::Options,
) -> Result<TranscodeSession>
async fn create_streaming_session( &self, protocol: Protocol, options: Self::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 !Freeze for Track
impl !RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl !UnwindSafe for Track
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