#[non_exhaustive]pub enum PayloadError {
Io(PathBuf),
PayloadTooShort(usize),
PayloadTooLong(usize),
}Expand description
An error while trying to create a payload
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(PathBuf)
Reading payload failed, std::io::Error
PayloadTooShort(usize)
Payload is less than the minimum length
PayloadTooLong(usize)
Payload is greater than the maximum length
Trait Implementations§
Source§impl Clone for PayloadError
impl Clone for PayloadError
Source§fn clone(&self) -> PayloadError
fn clone(&self) -> PayloadError
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 PayloadError
impl Debug for PayloadError
Source§impl Display for PayloadError
impl Display for PayloadError
Source§impl Error for PayloadError
impl Error for PayloadError
1.30.0 · 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 PartialEq for PayloadError
impl PartialEq for PayloadError
impl Eq for PayloadError
impl StructuralPartialEq for PayloadError
Auto Trait Implementations§
impl Freeze for PayloadError
impl RefUnwindSafe for PayloadError
impl Send for PayloadError
impl Sync for PayloadError
impl Unpin for PayloadError
impl UnwindSafe for PayloadError
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