pub struct URLTrack { /* private fields */ }Expand description
Safe wrapper over a IITURLTrack
Implementations§
Source§impl URLTrack
impl URLTrack
Sourcepub fn set_URL(&self, URL: &str) -> Result<()>
pub fn set_URL(&self, URL: &str) -> Result<()>
The URL of the stream represented by this track.
Sourcepub fn is_Podcast(&self) -> Result<bool>
pub fn is_Podcast(&self) -> Result<bool>
True if this is a podcast track.
Sourcepub fn UpdatePodcastFeed(&self) -> Result<()>
pub fn UpdatePodcastFeed(&self) -> Result<()>
Update the podcast feed for this track.
Sourcepub fn DownloadPodcastEpisode(&self) -> Result<()>
pub fn DownloadPodcastEpisode(&self) -> Result<()>
Start downloading the podcast episode that corresponds to this track.
Sourcepub fn set_Category(&self, Category: &str) -> Result<()>
pub fn set_Category(&self, Category: &str) -> Result<()>
Category for the track.
Sourcepub fn Description(&self) -> Result<String>
pub fn Description(&self) -> Result<String>
Description for the track.
Sourcepub fn set_Description(&self, Description: &str) -> Result<()>
pub fn set_Description(&self, Description: &str) -> Result<()>
Description for the track.
Sourcepub fn LongDescription(&self) -> Result<String>
pub fn LongDescription(&self) -> Result<String>
Long description for the track.
Sourcepub fn set_LongDescription(&self, LongDescription: &str) -> Result<()>
pub fn set_LongDescription(&self, LongDescription: &str) -> Result<()>
Long description for the track.
Sourcepub fn AlbumRating(&self) -> Result<Rating>
pub fn AlbumRating(&self) -> Result<Rating>
The user or computed rating of the album that this track belongs to.
Sourcepub fn set_AlbumRating(&self, AlbumRating: Rating) -> Result<()>
pub fn set_AlbumRating(&self, AlbumRating: Rating) -> Result<()>
The user or computed rating of the album that this track belongs to.
Sourcepub fn AlbumRatingKind(&self) -> Result<ITRatingKind>
pub fn AlbumRatingKind(&self) -> Result<ITRatingKind>
The album rating kind.
Sourcepub fn ratingKind(&self) -> Result<ITRatingKind>
pub fn ratingKind(&self) -> Result<ITRatingKind>
The track rating kind.
Sourcepub fn Playlists(&self) -> Result<PlaylistCollection>
pub fn Playlists(&self) -> Result<PlaylistCollection>
Returns a collection of playlists that contain the song that this track represents.
Trait Implementations§
Source§impl IITObjectWrapper for URLTrack
impl IITObjectWrapper for URLTrack
Source§fn GetITObjectIDs(&self) -> Result<ObjectIDs>
fn GetITObjectIDs(&self) -> Result<ObjectIDs>
Returns the four IDs that uniquely identify this object. Read more
Source§fn as_variant(&self) -> Variant<'_, Self::WrappedType>
fn as_variant(&self) -> Variant<'_, Self::WrappedType>
Get a COM
VARIANT pointing to this objectSource§fn persistent_id(&self) -> Result<PersistentId>
fn persistent_id(&self) -> Result<PersistentId>
Convenience function around
iTunes::GetITObjectPersistentIDSource§fn Index(&self) -> Result<i32>
fn Index(&self) -> Result<i32>
The index of the object in internal application order (1-based).
Source§fn playlistID(&self) -> Result<i32>
fn playlistID(&self) -> Result<i32>
The playlist ID of the object.
Source§fn TrackDatabaseID(&self) -> Result<i32>
fn TrackDatabaseID(&self) -> Result<i32>
The track database ID of the object.
Source§impl IITTrackWrapper for URLTrack
impl IITTrackWrapper for URLTrack
Source§fn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork>
fn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork>
Add artwork from an image file to this track.
Source§fn Kind(&self) -> Result<ITTrackKind>
fn Kind(&self) -> Result<ITTrackKind>
The track kind.
Source§fn is_Compilation(&self) -> Result<bool>
fn is_Compilation(&self) -> Result<bool>
True if this track is from a compilation album.
Source§fn set_Compilation(&self, Compilation: bool) -> Result<()>
fn set_Compilation(&self, Compilation: bool) -> Result<()>
True if this track is from a compilation album.
Source§fn set_DiscCount(&self, DiscCount: i32) -> Result<()>
fn set_DiscCount(&self, DiscCount: i32) -> Result<()>
The total number of discs in the source album.
Source§fn DiscNumber(&self) -> Result<i32>
fn DiscNumber(&self) -> Result<i32>
The index of the disc containing the track on the source album.
Source§fn set_DiscNumber(&self, DiscNumber: i32) -> Result<()>
fn set_DiscNumber(&self, DiscNumber: i32) -> Result<()>
The index of the disc containing the track on the source album.
Source§fn is_Enabled(&self) -> Result<bool>
fn is_Enabled(&self) -> Result<bool>
True if the track is checked for playback.
Source§fn Grouping(&self) -> Result<String>
fn Grouping(&self) -> Result<String>
The grouping (piece) of the track. Generally used to denote movements within classical work.
Source§fn set_Grouping(&self, Grouping: &str) -> Result<()>
fn set_Grouping(&self, Grouping: &str) -> Result<()>
The grouping (piece) of the track. Generally used to denote movements within classical work.
Source§fn KindAsString(&self) -> Result<String>
fn KindAsString(&self) -> Result<String>
A text description of the track.
Source§fn ModificationDate(&self) -> Result<f64>
fn ModificationDate(&self) -> Result<f64>
The modification date of the content of the track.
Source§fn PlayedCount(&self) -> Result<i32>
fn PlayedCount(&self) -> Result<i32>
The number of times the track has been played.
Source§fn set_PlayedCount(&self, PlayedCount: i32) -> Result<()>
fn set_PlayedCount(&self, PlayedCount: i32) -> Result<()>
The number of times the track has been played.
Source§fn PlayedDate(&self) -> Result<f64>
fn PlayedDate(&self) -> Result<f64>
The date and time the track was last played. A value of zero means no played date.
Source§fn set_PlayedDate(&self, PlayedDate: f64) -> Result<()>
fn set_PlayedDate(&self, PlayedDate: f64) -> Result<()>
The date and time the track was last played. A value of zero means no played date.
Source§fn PlayOrderIndex(&self) -> Result<i32>
fn PlayOrderIndex(&self) -> Result<i32>
The play order index of the track in the owner playlist (1-based).
Source§fn SampleRate(&self) -> Result<i32>
fn SampleRate(&self) -> Result<i32>
The sample rate of the track (in Hz).
Source§fn TrackCount(&self) -> Result<i32>
fn TrackCount(&self) -> Result<i32>
The total number of tracks on the source album.
Source§fn set_TrackCount(&self, TrackCount: i32) -> Result<()>
fn set_TrackCount(&self, TrackCount: i32) -> Result<()>
The total number of tracks on the source album.
Source§fn TrackNumber(&self) -> Result<i32>
fn TrackNumber(&self) -> Result<i32>
The index of the track on the source album.
Source§fn set_TrackNumber(&self, TrackNumber: i32) -> Result<()>
fn set_TrackNumber(&self, TrackNumber: i32) -> Result<()>
The index of the track on the source album.
Source§fn VolumeAdjustment(&self) -> Result<i32>
fn VolumeAdjustment(&self) -> Result<i32>
The relative volume adjustment of the track (-100% to 100%).
Source§fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> Result<()>
fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> Result<()>
The relative volume adjustment of the track (-100% to 100%).
Source§fn Artwork(&self) -> Result<ArtworkCollection>
fn Artwork(&self) -> Result<ArtworkCollection>
Returns a collection of artwork.
Source§impl ITunesRelatedObject for URLTrack
impl ITunesRelatedObject for URLTrack
Source§fn iTunes_instance(&self) -> Arc<iTunes>
fn iTunes_instance(&self) -> Arc<iTunes>
Return the related iTunes instance this object is related to
Auto Trait Implementations§
impl Freeze for URLTrack
impl RefUnwindSafe for URLTrack
impl !Send for URLTrack
impl !Sync for URLTrack
impl Unpin for URLTrack
impl UnwindSafe for URLTrack
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