Expand description
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
libmtpclaims to support and can handle. Note that some devices may not support some filetypes. - properties
- Contains all the properties that
libmtpclaims 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).
Structs§
- Dummy
Object - Wrapper structure that holds an object id and a reference to an
MtpDevice, useful if you want to work with Object methods and only have an id. (seeMtpDevice::dummy_object).
Traits§
- AsObject
Id - Trait to allow the usage of certain structures or plain
u32in places where an object id is required. By default everyObjectimplementor 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).