pub enum Error<E, A> {
Show 18 variants
Storage(AllocError),
Syntax(Error),
Name {
offset: usize,
actual: u8,
},
Value {
offset: usize,
actual: u8,
},
Point {
base: usize,
relative: usize,
available: usize,
},
Ending {
start: usize,
available: usize,
},
Limit {
observed: usize,
limit: usize,
},
Field {
start: usize,
available: usize,
cause: Error,
},
Header(E),
Admission(A),
Span(Error),
Offset {
base: usize,
relative: usize,
suffix: usize,
available: usize,
},
Fields {
actual: usize,
limit: usize,
},
Length {
len: usize,
},
Target(Semantic),
Method(Semantic),
Layout(Error),
UnsupportedTransferEncoding,
}Variants§
Storage(AllocError)
Syntax(Error)
Name
Value
Point
Ending
Limit
Field
Header(E)
Admission(A)
Span(Error)
Offset
Fields
Length
Target(Semantic)
Method(Semantic)
Layout(Error)
UnsupportedTransferEncoding
Trait Implementations§
Source§impl<E, A> From<!> for Error<E, A>
impl<E, A> From<!> for Error<E, A>
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl<E, A> From<AllocError> for Error<E, A>
impl<E, A> From<AllocError> for Error<E, A>
Source§fn from(error: AllocError) -> Self
fn from(error: AllocError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E, A> Forget for Error<E, A>
impl<E, A> Freeze for Error<E, A>
impl<E, A> Move for Error<E, A>
impl<E, A> RefUnwindSafe for Error<E, A>
impl<E, A> Send for Error<E, A>
impl<E, A> Sync for Error<E, A>
impl<E, A> Unpin for Error<E, A>
impl<E, A> UnsafeUnpin for Error<E, A>
impl<E, A> UnwindSafe for Error<E, A>
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