pub enum HeaderParseError {
VersionNotFound,
InvalidVersion(String),
UsidNotFound,
InvalidUsid(String),
OperationNotFound,
InvalidOperation(String),
InvalidOperationCode(String),
}Expand description
Define message headers error when parsing
Variants§
VersionNotFound
Version not found in headers.
InvalidVersion(String)
Version found but is invalid : {0}
UsidNotFound
Usid not found in headers.
InvalidUsid(String)
Usid found but is invalid (cannot be deserialized) : {0}
OperationNotFound
Operation not found in headers.
InvalidOperation(String)
Operation found but does not match the operation code : {0}.
InvalidOperationCode(String)
Operation code is invalid : {0}.
Trait Implementations§
Source§impl Debug for HeaderParseError
impl Debug for HeaderParseError
Source§impl Display for HeaderParseError
impl Display for HeaderParseError
Source§impl Error for HeaderParseError
impl Error for HeaderParseError
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 From<HeaderParseError> for Error
impl From<HeaderParseError> for Error
Source§fn from(source: HeaderParseError) -> Self
fn from(source: HeaderParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HeaderParseError
impl RefUnwindSafe for HeaderParseError
impl Send for HeaderParseError
impl Sync for HeaderParseError
impl Unpin for HeaderParseError
impl UnwindSafe for HeaderParseError
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