#[non_exhaustive]pub enum FetchError {
Count {
message: String,
},
Rows {
rows: Range<u64>,
message: String,
},
Short {
rows: Range<u64>,
got: u64,
},
Stopped {
message: String,
},
}Expand description
Why a PagedModel has rows it cannot show: what
PagedModel::error gives.
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.
Count
The source failed to count the rows (message says why): no rows are shown until
retry or refresh counts
them.
Rows
Fields
Short
The source gave only got of rows, which its count says are there: the data changed
since it was counted. They stay empty until refresh
counts again.
Stopped
The thread fetching pages stopped (message says why: the model’s wake panicked):
nothing more arrives, so make the model again.
Trait Implementations§
Source§impl Clone for FetchError
impl Clone for FetchError
Source§impl Debug for FetchError
impl Debug for FetchError
Source§impl Display for FetchError
impl Display for FetchError
impl Eq for FetchError
Source§impl Error for FetchError
impl Error for FetchError
1.30.0 · 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()
Source§impl PartialEq for FetchError
impl PartialEq for FetchError
impl StructuralPartialEq for FetchError
Auto Trait Implementations§
impl Freeze for FetchError
impl RefUnwindSafe for FetchError
impl Send for FetchError
impl Sync for FetchError
impl Unpin for FetchError
impl UnsafeUnpin for FetchError
impl UnwindSafe for FetchError
Blanket Implementations§
impl<T> Allocation for T
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