Enum gitlab::api::LinkHeaderParseError
source · [−]pub enum LinkHeaderParseError {
InvalidHeader {
source: ToStrError,
},
NoBrackets,
MissingParamValue,
}
Expand description
An error which can occur when parsing a link header.
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
sourceimpl Debug for LinkHeaderParseError
impl Debug for LinkHeaderParseError
sourceimpl Display for LinkHeaderParseError
impl Display for LinkHeaderParseError
sourceimpl Error for LinkHeaderParseError
impl Error for LinkHeaderParseError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<LinkHeaderParseError> for PaginationError
impl From<LinkHeaderParseError> for PaginationError
sourcefn from(source: LinkHeaderParseError) -> Self
fn from(source: LinkHeaderParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ToStrError> for LinkHeaderParseError
impl From<ToStrError> for LinkHeaderParseError
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more