pub enum UploadError {
Io(Error),
Transfer(FileError),
Stalled(&'static str),
HandshakeFailed,
Heatshrink(HeatshrinkError),
}Available on (crate features
blocking or tokio or serial) and (crate features blocking or tokio) only.Expand description
Errors the adapter upload helpers can produce.
Variants§
Io(Error)
Wrapping I/O error from the transport.
Transfer(FileError)
Underlying file-transfer state machine reported a failure.
Stalled(&'static str)
Reached an unrecoverable protocol state (e.g. device returned nothing for too long with no progress).
HandshakeFailed
The session never completed the SYNC handshake before the helper gave up.
Heatshrink(HeatshrinkError)
Available on crate feature
heatshrink only.Heatshrink compression error.
Trait Implementations§
Source§impl Debug for UploadError
impl Debug for UploadError
Source§impl Display for UploadError
impl Display for UploadError
Source§impl Error for UploadError
impl Error for UploadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for UploadError
impl From<Error> for UploadError
Source§impl From<FileError> for UploadError
impl From<FileError> for UploadError
Source§impl From<HeatshrinkError> for UploadError
impl From<HeatshrinkError> for UploadError
Source§fn from(source: HeatshrinkError) -> Self
fn from(source: HeatshrinkError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UploadError
impl !RefUnwindSafe for UploadError
impl Send for UploadError
impl Sync for UploadError
impl Unpin for UploadError
impl UnsafeUnpin for UploadError
impl !UnwindSafe for UploadError
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