pub struct Track { /* private fields */ }Expand description
Safe wrapper over a IITTrack
Implementations§
Source§impl Track
impl Track
Sourcepub fn as_file_or_cd_track(&self) -> Option<FileOrCDTrack>
pub fn as_file_or_cd_track(&self) -> Option<FileOrCDTrack>
In case the concrete COM object for this track actually is a derived FileOrCDTrack, this is a way to retrieve it
Trait Implementations§
Source§impl IITObjectWrapper for Track
impl IITObjectWrapper for Track
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 Track
impl IITTrackWrapper for Track
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 Track
impl ITunesRelatedObject for Track
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 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