Enum gitlab::api::PaginationError
source · #[non_exhaustive]pub enum PaginationError {
LinkHeader {
source: LinkHeaderParseError,
},
InvalidUrl {
source: ParseError,
},
}
Expand description
Errors which may occur with pagination.
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.
LinkHeader
A Link
HTTP header can fail to parse.
Fields
§
source: LinkHeaderParseError
The source of the error.
InvalidUrl
An invalid URL can be returned.
Fields
§
source: ParseError
The source of the error.
Trait Implementations§
source§impl Debug for PaginationError
impl Debug for PaginationError
source§impl Display for PaginationError
impl Display for PaginationError
source§impl Error for PaginationError
impl Error for PaginationError
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<E> From<PaginationError> for ApiError<E>
impl<E> From<PaginationError> for ApiError<E>
source§fn from(source: PaginationError) -> Self
fn from(source: PaginationError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for PaginationError
impl From<ParseError> for PaginationError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PaginationError
impl RefUnwindSafe for PaginationError
impl Send for PaginationError
impl Sync for PaginationError
impl Unpin for PaginationError
impl UnwindSafe for PaginationError
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more