[][src]Module libmtp_rs::object

Everything on the Media Transfer Protocol is an object, this module groups common behavior and items of many higher abstractions like files, tracks, albums, etc.

Note that most operations on attributes should be managed with other APIs exposed in this crate, the most useful utilities here serve to delete, move and copy objects (Object trait).

Modules

filetypes

Contains all the filetypes that libmtp claims to support and can handle. Note that some devices may not support some filetypes.

properties

Contains all the properties that libmtp claims to support and can handle. Note that some devices and certain filetypes may not support some of these properties (but theorically every object should support all properties).

Traits

AsObjectId

Trait to allow the usage of certain structures or plain u32 in places where an object id is required. By default every Object implementor automagically implements this trait.

Object

Common behavior of many higher abstractions is grouped in this trait, basically everything on MTP is an object with some attributes, even though this API is exposed, it's not recommended to use it to modify or get attributes that can be managed with other specefic APIs (like files, folders, tracks, etc).