IITTrackWrapper

Trait IITTrackWrapper 

Source
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§

Source

fn Delete(&self) -> Result<()>

Delete this track.

Source

fn Play(&self) -> Result<()>

Start playing this track.

Source

fn AddArtworkFromFile(&self, filePath: &str) -> Result<Artwork>

Add artwork from an image file to this track.

Source

fn Kind(&self) -> Result<ITTrackKind>

The track kind.

Source

fn Playlist(&self) -> Result<Playlist>

The playlist that contains this track.

Source

fn Album(&self) -> Result<String>

The album containing the track.

Source

fn set_Album(&self, Album: &str) -> Result<()>

The album containing the track.

Source

fn Artist(&self) -> Result<String>

The artist/source of the track.

Source

fn set_Artist(&self, Artist: &str) -> Result<()>

The artist/source of the track.

Source

fn BitRate(&self) -> Result<i32>

The bit rate of the track (in kbps).

Source

fn BPM(&self) -> Result<i32>

The tempo of the track (in beats per minute).

Source

fn set_BPM(&self, BPM: i32) -> Result<()>

The tempo of the track (in beats per minute).

Source

fn Comment(&self) -> Result<String>

Freeform notes about the track.

Source

fn set_Comment(&self, Comment: &str) -> Result<()>

Freeform notes about the track.

Source

fn is_Compilation(&self) -> Result<bool>

True if this track is from a compilation album.

Source

fn set_Compilation(&self, Compilation: bool) -> Result<()>

True if this track is from a compilation album.

Source

fn Composer(&self) -> Result<String>

The composer of the track.

Source

fn set_Composer(&self, Composer: &str) -> Result<()>

The composer of the track.

Source

fn DateAdded(&self) -> Result<f64>

The date the track was added to the playlist.

Source

fn DiscCount(&self) -> Result<i32>

The total number of discs in the source album.

Source

fn set_DiscCount(&self, DiscCount: i32) -> Result<()>

The total number of discs in the source album.

Source

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<()>

The index of the disc containing the track on the source album.

Source

fn Duration(&self) -> Result<i32>

The length of the track (in seconds).

Source

fn is_Enabled(&self) -> Result<bool>

True if the track is checked for playback.

Source

fn set_Enabled(&self, Enabled: bool) -> Result<()>

True if the track is checked for playback.

Source

fn EQ(&self) -> Result<String>

The name of the EQ preset of the track.

Source

fn set_EQ(&self, EQ: &str) -> Result<()>

The name of the EQ preset of the track.

Source

fn set_Finish(&self, Finish: i32) -> Result<()>

The stop time of the track (in seconds).

Source

fn Finish(&self) -> Result<i32>

The stop time of the track (in seconds).

Source

fn Genre(&self) -> Result<String>

The music/audio genre (category) of the track.

Source

fn set_Genre(&self, Genre: &str) -> Result<()>

The music/audio genre (category) of the track.

Source

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<()>

The grouping (piece) of the track. Generally used to denote movements within classical work.

Source

fn KindAsString(&self) -> Result<String>

A text description of the track.

Source

fn ModificationDate(&self) -> Result<f64>

The modification date of the content of the track.

Source

fn PlayedCount(&self) -> Result<i32>

The number of times the track has been played.

Source

fn set_PlayedCount(&self, PlayedCount: i32) -> Result<()>

The number of times the track has been played.

Source

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<()>

The date and time the track was last played. A value of zero means no played date.

Source

fn PlayOrderIndex(&self) -> Result<i32>

The play order index of the track in the owner playlist (1-based).

Source

fn Rating(&self) -> Result<Rating>

The rating of the track.

Source

fn set_Rating(&self, Rating: Rating) -> Result<()>

The rating of the track.

Source

fn SampleRate(&self) -> Result<i32>

The sample rate of the track (in Hz).

Source

fn Size(&self) -> Result<i32>

The size of the track (in bytes).

Source

fn Start(&self) -> Result<i32>

The start time of the track (in seconds).

Source

fn set_Start(&self, Start: i32) -> Result<()>

The start time of the track (in seconds).

Source

fn Time(&self) -> Result<String>

The length of the track (in MM:SS format).

Source

fn TrackCount(&self) -> Result<i32>

The total number of tracks on the source album.

Source

fn set_TrackCount(&self, TrackCount: i32) -> Result<()>

The total number of tracks on the source album.

Source

fn TrackNumber(&self) -> Result<i32>

The index of the track on the source album.

Source

fn set_TrackNumber(&self, TrackNumber: i32) -> Result<()>

The index of the track on the source album.

Source

fn VolumeAdjustment(&self) -> Result<i32>

The relative volume adjustment of the track (-100% to 100%).

Source

fn set_VolumeAdjustment(&self, VolumeAdjustment: i32) -> Result<()>

The relative volume adjustment of the track (-100% to 100%).

Source

fn Year(&self) -> Result<i32>

The year the track was recorded/released.

Source

fn set_Year(&self, Year: i32) -> Result<()>

The year the track was recorded/released.

Source

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.

Implementors§