pub trait IITTrackWrapper: ComObjectWrapper {
Show 57 methods
// Provided methods
fn Delete(&self) -> Result<()> { ... }
fn Play(&self) -> Result<()> { ... }
fn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork> { ... }
fn Kind(&self) -> Result<ITTrackKind> { ... }
fn Playlist(&self) -> Result<Playlist> { ... }
fn Album(&self) -> Result<String> { ... }
fn set_Album(&self, Album: &str) -> Result<()> { ... }
fn Artist(&self) -> Result<String> { ... }
fn set_Artist(&self, Artist: &str) -> Result<()> { ... }
fn BitRate(&self) -> Result<i32> { ... }
fn BPM(&self) -> Result<i32> { ... }
fn set_BPM(&self, BPM: i32) -> Result<()> { ... }
fn Comment(&self) -> Result<String> { ... }
fn set_Comment(&self, Comment: &str) -> Result<()> { ... }
fn is_Compilation(&self) -> Result<bool> { ... }
fn set_Compilation(&self, Compilation: bool) -> Result<()> { ... }
fn Composer(&self) -> Result<String> { ... }
fn set_Composer(&self, Composer: &str) -> Result<()> { ... }
fn DateAdded(&self) -> Result<f64> { ... }
fn DiscCount(&self) -> Result<i32> { ... }
fn set_DiscCount(&self, DiscCount: i32) -> Result<()> { ... }
fn DiscNumber(&self) -> Result<i32> { ... }
fn set_DiscNumber(&self, DiscNumber: i32) -> Result<()> { ... }
fn Duration(&self) -> Result<i32> { ... }
fn is_Enabled(&self) -> Result<bool> { ... }
fn set_Enabled(&self, Enabled: bool) -> Result<()> { ... }
fn EQ(&self) -> Result<String> { ... }
fn set_EQ(&self, EQ: &str) -> Result<()> { ... }
fn set_Finish(&self, Finish: i32) -> Result<()> { ... }
fn Finish(&self) -> Result<i32> { ... }
fn Genre(&self) -> Result<String> { ... }
fn set_Genre(&self, Genre: &str) -> Result<()> { ... }
fn Grouping(&self) -> Result<String> { ... }
fn set_Grouping(&self, Grouping: &str) -> Result<()> { ... }
fn KindAsString(&self) -> Result<String> { ... }
fn ModificationDate(&self) -> Result<f64> { ... }
fn PlayedCount(&self) -> Result<i32> { ... }
fn set_PlayedCount(&self, PlayedCount: i32) -> Result<()> { ... }
fn PlayedDate(&self) -> Result<f64> { ... }
fn set_PlayedDate(&self, PlayedDate: f64) -> Result<()> { ... }
fn PlayOrderIndex(&self) -> Result<i32> { ... }
fn Rating(&self) -> Result<Rating> { ... }
fn set_Rating(&self, Rating: Rating) -> Result<()> { ... }
fn SampleRate(&self) -> Result<i32> { ... }
fn Size(&self) -> Result<i32> { ... }
fn Start(&self) -> Result<i32> { ... }
fn set_Start(&self, Start: i32) -> Result<()> { ... }
fn Time(&self) -> Result<String> { ... }
fn TrackCount(&self) -> Result<i32> { ... }
fn set_TrackCount(&self, TrackCount: i32) -> Result<()> { ... }
fn TrackNumber(&self) -> Result<i32> { ... }
fn set_TrackNumber(&self, TrackNumber: i32) -> Result<()> { ... }
fn VolumeAdjustment(&self) -> Result<i32> { ... }
fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> Result<()> { ... }
fn Year(&self) -> Result<i32> { ... }
fn set_Year(&self, Year: i32) -> Result<()> { ... }
fn Artwork(&self) -> Result<ArtworkCollection> { ... }
}Expand description
Several COM objects inherit from this class, which provides some extra methods
Provided Methods§
Sourcefn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork>
fn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork>
Add artwork from an image file to this track.
Sourcefn Kind(&self) -> Result<ITTrackKind>
fn Kind(&self) -> Result<ITTrackKind>
The track kind.
Sourcefn set_Artist(&self, Artist: &str) -> Result<()>
fn set_Artist(&self, Artist: &str) -> Result<()>
The artist/source of the track.
Sourcefn set_Comment(&self, Comment: &str) -> Result<()>
fn set_Comment(&self, Comment: &str) -> Result<()>
Freeform notes about the track.
Sourcefn is_Compilation(&self) -> Result<bool>
fn is_Compilation(&self) -> Result<bool>
True if this track is from a compilation album.
Sourcefn set_Compilation(&self, Compilation: bool) -> Result<()>
fn set_Compilation(&self, Compilation: bool) -> Result<()>
True if this track is from a compilation album.
Sourcefn set_Composer(&self, Composer: &str) -> Result<()>
fn set_Composer(&self, Composer: &str) -> Result<()>
The composer of the track.
Sourcefn set_DiscCount(&self, DiscCount: i32) -> Result<()>
fn set_DiscCount(&self, DiscCount: i32) -> Result<()>
The total number of discs in the source album.
Sourcefn DiscNumber(&self) -> Result<i32>
fn DiscNumber(&self) -> Result<i32>
The index of the disc containing the track on the source album.
Sourcefn 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.
Sourcefn is_Enabled(&self) -> Result<bool>
fn is_Enabled(&self) -> Result<bool>
True if the track is checked for playback.
Sourcefn set_Enabled(&self, Enabled: bool) -> Result<()>
fn set_Enabled(&self, Enabled: bool) -> Result<()>
True if the track is checked for playback.
Sourcefn set_Finish(&self, Finish: i32) -> Result<()>
fn set_Finish(&self, Finish: i32) -> Result<()>
The stop time of the track (in seconds).
Sourcefn Grouping(&self) -> Result<String>
fn Grouping(&self) -> Result<String>
The grouping (piece) of the track. Generally used to denote movements within classical work.
Sourcefn 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.
Sourcefn KindAsString(&self) -> Result<String>
fn KindAsString(&self) -> Result<String>
A text description of the track.
Sourcefn ModificationDate(&self) -> Result<f64>
fn ModificationDate(&self) -> Result<f64>
The modification date of the content of the track.
Sourcefn PlayedCount(&self) -> Result<i32>
fn PlayedCount(&self) -> Result<i32>
The number of times the track has been played.
Sourcefn set_PlayedCount(&self, PlayedCount: i32) -> Result<()>
fn set_PlayedCount(&self, PlayedCount: i32) -> Result<()>
The number of times the track has been played.
Sourcefn 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.
Sourcefn 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.
Sourcefn PlayOrderIndex(&self) -> Result<i32>
fn PlayOrderIndex(&self) -> Result<i32>
The play order index of the track in the owner playlist (1-based).
Sourcefn set_Rating(&self, Rating: Rating) -> Result<()>
fn set_Rating(&self, Rating: Rating) -> Result<()>
The rating of the track.
Sourcefn SampleRate(&self) -> Result<i32>
fn SampleRate(&self) -> Result<i32>
The sample rate of the track (in Hz).
Sourcefn TrackCount(&self) -> Result<i32>
fn TrackCount(&self) -> Result<i32>
The total number of tracks on the source album.
Sourcefn set_TrackCount(&self, TrackCount: i32) -> Result<()>
fn set_TrackCount(&self, TrackCount: i32) -> Result<()>
The total number of tracks on the source album.
Sourcefn TrackNumber(&self) -> Result<i32>
fn TrackNumber(&self) -> Result<i32>
The index of the track on the source album.
Sourcefn set_TrackNumber(&self, TrackNumber: i32) -> Result<()>
fn set_TrackNumber(&self, TrackNumber: i32) -> Result<()>
The index of the track on the source album.
Sourcefn VolumeAdjustment(&self) -> Result<i32>
fn VolumeAdjustment(&self) -> Result<i32>
The relative volume adjustment of the track (-100% to 100%).
Sourcefn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> Result<()>
fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> Result<()>
The relative volume adjustment of the track (-100% to 100%).
Sourcefn Artwork(&self) -> Result<ArtworkCollection>
fn Artwork(&self) -> Result<ArtworkCollection>
Returns a collection of artwork.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.