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
Fields
source: LinkHeaderParseErrorThe source of the error.
A Link HTTP header can fail to parse.
InvalidUrl
Fields
source: ParseErrorThe source of the error.
An invalid URL can be returned.
Trait Implementations
sourceimpl Debug for PaginationError
impl Debug for PaginationError
sourceimpl Display for PaginationError
impl Display for PaginationError
sourceimpl Error for PaginationError
impl Error for PaginationError
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<E> From<PaginationError> for ApiError<E>where
E: Error + Send + Sync + 'static,
impl<E> From<PaginationError> for ApiError<E>where
E: Error + Send + Sync + 'static,
sourcefn from(source: PaginationError) -> Self
fn from(source: PaginationError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for PaginationError
impl From<ParseError> for PaginationError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for PaginationError
impl Send for PaginationError
impl Sync for PaginationError
impl Unpin for PaginationError
impl UnwindSafe for PaginationError
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