#[non_exhaustive]pub enum MultipartError {
UnexpectedFirstOffset(u16),
OutOfOrderOffset {
expected: u16,
got: u16,
},
InconsistentTotal {
first: u16,
now: u16,
},
OverflowsTotal,
BadFragmentSize,
Aborted,
}Expand description
Subcategory of multi-part assembler errors.
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.
UnexpectedFirstOffset(u16)
First fragment did not arrive at offset 0.
OutOfOrderOffset
Out-of-order or overlapping fragment.
InconsistentTotal
MpSizeTotal differs from the figure in a previous fragment.
OverflowsTotal
Final fragment overruns the declared total.
BadFragmentSize
MpFragmentSize does not match the actual payload.
Aborted
Counterparty aborted the transfer.
Trait Implementations§
Source§impl Clone for MultipartError
impl Clone for MultipartError
Source§fn clone(&self) -> MultipartError
fn clone(&self) -> MultipartError
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 MultipartError
impl Debug for MultipartError
Source§impl From<MultipartError> for Error
impl From<MultipartError> for Error
Source§fn from(e: MultipartError) -> Self
fn from(e: MultipartError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MultipartError
impl PartialEq for MultipartError
impl Copy for MultipartError
impl Eq for MultipartError
impl StructuralPartialEq for MultipartError
Auto Trait Implementations§
impl Freeze for MultipartError
impl RefUnwindSafe for MultipartError
impl Send for MultipartError
impl Sync for MultipartError
impl Unpin for MultipartError
impl UnsafeUnpin for MultipartError
impl UnwindSafe for MultipartError
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