#[non_exhaustive]pub enum GapFillError {
PageFailed {
after: String,
next: String,
source: Box<dyn StdError + Send + Sync>,
},
PageStalled {
after: String,
next: String,
cursor: String,
},
}Expand description
One delivery-gap recovery attempt failed without making the fold current.
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.
PageFailed
A gap, event or page could not be used: GapFill
returns this when one names another session, or when a page arrives
with no gap pending. Code that sends the page requests can also wrap an
MspError or a transport error in it. GapFillError::page_failure
names the cause.
Fields
§
after: StringThe refused gap’s after cursor, else the pending gap’s, or empty
when no gap was pending.
PageStalled
A page made no progress: it said more pages follow but held no events, or it returned the cursor it was requested from.
Implementations§
Source§impl GapFillError
impl GapFillError
Sourcepub const fn is_page_failed(&self) -> bool
pub const fn is_page_failed(&self) -> bool
Whether this is Self::PageFailed.
Sourcepub const fn is_page_stalled(&self) -> bool
pub const fn is_page_stalled(&self) -> bool
Whether this is Self::PageStalled.
Sourcepub fn page_failure(&self) -> Option<GapPageFailure<'_>>
pub fn page_failure(&self) -> Option<GapPageFailure<'_>>
Returns the typed cause of Self::PageFailed.
Trait Implementations§
Source§impl Debug for GapFillError
impl Debug for GapFillError
Source§impl Display for GapFillError
impl Display for GapFillError
Source§impl Error for GapFillError
impl Error for GapFillError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for GapFillError
impl !UnwindSafe for GapFillError
impl Forget for GapFillError
impl Freeze for GapFillError
impl Move for GapFillError
impl Send for GapFillError
impl Sync for GapFillError
impl Unpin for GapFillError
impl UnsafeUnpin for GapFillError
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