IITObjectWrapper

Trait IITObjectWrapper 

Source
pub trait IITObjectWrapper: ComObjectWrapper {
    // Provided methods
    fn GetITObjectIDs(&self) -> Result<ObjectIDs> { ... }
    fn as_variant(&self) -> Variant<'_, Self::WrappedType> { ... }
    fn persistent_id(&self) -> Result<PersistentId> { ... }
    fn Name(&self) -> Result<String> { ... }
    fn set_Name(&self, Name: &str) -> Result<()> { ... }
    fn Index(&self) -> Result<i32> { ... }
    fn sourceID(&self) -> Result<i32> { ... }
    fn playlistID(&self) -> Result<i32> { ... }
    fn trackID(&self) -> Result<i32> { ... }
    fn TrackDatabaseID(&self) -> Result<i32> { ... }
}
Expand description

Many COM objects inherit from this class, which provides some extra methods

Provided Methods§

Source

fn GetITObjectIDs(&self) -> Result<ObjectIDs>

Returns the four IDs that uniquely identify this object.

These ID are “runtime” IDs, only valid for this current session. See here for more info
Use iTunes::GetITObjectByID for the reverse operation.

Source

fn as_variant(&self) -> Variant<'_, Self::WrappedType>

Get a COM VARIANT pointing to this object

Source

fn persistent_id(&self) -> Result<PersistentId>

Convenience function around iTunes::GetITObjectPersistentID

Source

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

The name of the object.

Source

fn set_Name(&self, Name: &str) -> Result<()>

The name of the object.

Source

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

The index of the object in internal application order (1-based).

Source

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

The source ID of the object.

Source

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

The playlist ID of the object.

Source

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

The track ID of the object.

Source

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

The track database ID of the object.

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§