#[non_exhaustive]pub enum PvError {
Io {
source: Error,
},
RateLimitInvalid {
value: String,
},
SizeInvalid {
value: String,
},
}Expand description
Error type returned by Pv operations.
#[non_exhaustive] allows additive variants in SemVer-minor releases per
FR-057. Downstream code MUST use a wildcard _ arm when matching.
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.
Io
I/O failure during a read or write operation.
RateLimitInvalid
Rate-limit value was invalid (could not be parsed or is non-positive).
SizeInvalid
Size hint value was invalid (could not be parsed or is non-positive).
Trait Implementations§
Source§impl Error for PvError
impl Error for PvError
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 Freeze for PvError
impl !RefUnwindSafe for PvError
impl Send for PvError
impl Sync for PvError
impl Unpin for PvError
impl UnsafeUnpin for PvError
impl !UnwindSafe for PvError
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