Enum gitlab::api::LinkHeaderParseError
source · #[non_exhaustive]pub enum LinkHeaderParseError {
InvalidHeader {
source: ToStrError,
},
NoBrackets,
MissingParamValue,
}
Expand description
An error which can occur when parsing a link header.
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.
InvalidHeader
Fields
§
source: ToStrError
The source of the error.
An invalid HTTP header was found.
NoBrackets
The url
for a Link
header was missing <>
brackets.
MissingParamValue
A parameter for a Link
header was missing a value.
Trait Implementations§
source§impl Debug for LinkHeaderParseError
impl Debug for LinkHeaderParseError
source§impl Display for LinkHeaderParseError
impl Display for LinkHeaderParseError
source§impl Error for LinkHeaderParseError
impl Error for LinkHeaderParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<LinkHeaderParseError> for PaginationError
impl From<LinkHeaderParseError> for PaginationError
source§fn from(source: LinkHeaderParseError) -> Self
fn from(source: LinkHeaderParseError) -> Self
Converts to this type from the input type.
source§impl From<ToStrError> for LinkHeaderParseError
impl From<ToStrError> for LinkHeaderParseError
source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for LinkHeaderParseError
impl Send for LinkHeaderParseError
impl Sync for LinkHeaderParseError
impl Unpin for LinkHeaderParseError
impl UnwindSafe for LinkHeaderParseError
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