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§
Sourcefn GetITObjectIDs(&self) -> Result<ObjectIDs>
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.
Sourcefn as_variant(&self) -> Variant<'_, Self::WrappedType>
fn as_variant(&self) -> Variant<'_, Self::WrappedType>
Get a COM VARIANT pointing to this object
Sourcefn persistent_id(&self) -> Result<PersistentId>
fn persistent_id(&self) -> Result<PersistentId>
Convenience function around iTunes::GetITObjectPersistentID
Sourcefn Index(&self) -> Result<i32>
fn Index(&self) -> Result<i32>
The index of the object in internal application order (1-based).
Sourcefn playlistID(&self) -> Result<i32>
fn playlistID(&self) -> Result<i32>
The playlist ID of the object.
Sourcefn TrackDatabaseID(&self) -> Result<i32>
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.