LIBMTP_track_struct

Struct LIBMTP_track_struct 

Source
#[repr(C)]
pub struct LIBMTP_track_struct {
Show 23 fields pub item_id: u32, pub parent_id: u32, pub storage_id: u32, pub title: *mut c_char, pub artist: *mut c_char, pub composer: *mut c_char, pub genre: *mut c_char, pub album: *mut c_char, pub date: *mut c_char, pub filename: *mut c_char, pub tracknumber: u16, pub duration: u32, pub samplerate: u32, pub nochannels: u16, pub wavecodec: u32, pub bitrate: u32, pub bitratetype: u16, pub rating: u16, pub usecount: u32, pub filesize: u64, pub modificationdate: time_t, pub filetype: LIBMTP_filetype_t, pub next: *mut LIBMTP_track_t,
}
Expand description

MTP track struct

Fields§

§item_id: u32

< Unique item ID

§parent_id: u32

< ID of parent folder

§storage_id: u32

< ID of storage holding this track

§title: *mut c_char

< Track title

§artist: *mut c_char

< Name of recording artist

§composer: *mut c_char

< Name of recording composer

§genre: *mut c_char

< Genre name for track

§album: *mut c_char

< Album name for track

§date: *mut c_char

< Date of original recording as a string

§filename: *mut c_char

< Original filename of this track

§tracknumber: u16

< Track number (in sequence on recording)

§duration: u32

< Duration in milliseconds

§samplerate: u32

< Sample rate of original file, min 0x1f80 max 0xbb80

§nochannels: u16

< Number of channels in this recording 0 = unknown, 1 or 2

§wavecodec: u32

< FourCC wave codec name

§bitrate: u32

< (Average) bitrate for this file min=1 max=0x16e360

§bitratetype: u16

< 0 = unused, 1 = constant, 2 = VBR, 3 = free

§rating: u16

< User rating 0-100 (0x00-0x64)

§usecount: u32

< Number of times used/played

§filesize: u64

< Size of track file in bytes

§modificationdate: time_t

< Date of last alteration of the track

§filetype: LIBMTP_filetype_t

< Filetype used for the current track

§next: *mut LIBMTP_track_t

< Next track in list or NULL if last track

Auto Trait Implementations§

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.