Source

Struct Source 

Source
pub struct Source { /* private fields */ }
Expand description

Safe wrapper over a IITSource

Implementations§

Source§

impl Source

Source

pub fn Kind(&self) -> Result<ITSourceKind>

The source kind.

Source

pub fn Capacity(&self) -> Result<f64>

The total size of the source, if it has a fixed size.

Source

pub fn FreeSpace(&self) -> Result<f64>

The free space on the source, if it has a fixed size.

Source

pub fn Playlists(&self) -> Result<PlaylistCollection>

Returns a collection of playlists.

Trait Implementations§

Source§

impl IITObjectWrapper for Source

Source§

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

Returns the four IDs that uniquely identify this object. Read more
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.
Source§

impl ITunesRelatedObject for Source

Source§

fn iTunes_instance(&self) -> Arc<iTunes>

Return the related iTunes instance this object is related to

Auto Trait Implementations§

§

impl Freeze for Source

§

impl RefUnwindSafe for Source

§

impl !Send for Source

§

impl !Sync for Source

§

impl Unpin for Source

§

impl UnwindSafe for Source

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.