pub enum MtpErrorKind {
General,
Ptp,
Usb,
MemoryAllocation,
NoDeviceAttached,
StorageFull,
Connecting,
Cancelled,
}Expand description
Category for an error, that occured at the MTP (Media Transfer Protocol) layer.
Variants§
General
General error.
Ptp
An error occured at the PTP (Picture Transfer Protocol) layer.
Usb
An error occured at the USB layer.
MemoryAllocation
An error due to memory allocation failure.
NoDeviceAttached
No device is attached.
StorageFull
Error due to insufficient space on the storage of the device.
Connecting
An error occured while connecting to the device.
Cancelled
The operation was cancelled.
Trait Implementations§
Source§impl Clone for MtpErrorKind
impl Clone for MtpErrorKind
Source§fn clone(&self) -> MtpErrorKind
fn clone(&self) -> MtpErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MtpErrorKind
impl Debug for MtpErrorKind
Source§impl Hash for MtpErrorKind
impl Hash for MtpErrorKind
Source§impl PartialEq for MtpErrorKind
impl PartialEq for MtpErrorKind
impl Copy for MtpErrorKind
impl Eq for MtpErrorKind
impl StructuralPartialEq for MtpErrorKind
Auto Trait Implementations§
impl Freeze for MtpErrorKind
impl RefUnwindSafe for MtpErrorKind
impl Send for MtpErrorKind
impl Sync for MtpErrorKind
impl Unpin for MtpErrorKind
impl UnwindSafe for MtpErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more