#[non_exhaustive]pub enum JournalSequenceError {
Zero,
AboveMaximum,
InvalidFormat,
NonCanonical,
}Expand description
Invalid canonical journal sequence.
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.
Zero
Sequence zero is outside the one-based journal.
AboveMaximum
The sequence exceeded PostgreSQL signed BIGINT.
InvalidFormat
The wire value was empty or contained a non-decimal byte.
NonCanonical
The wire value contained a leading zero.
Trait Implementations§
Source§impl Clone for JournalSequenceError
impl Clone for JournalSequenceError
Source§impl Debug for JournalSequenceError
impl Debug for JournalSequenceError
Source§impl Display for JournalSequenceError
impl Display for JournalSequenceError
impl Eq for JournalSequenceError
Source§impl Error for JournalSequenceError
impl Error for JournalSequenceError
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 JournalSequenceError
impl PartialEq for JournalSequenceError
impl StructuralPartialEq for JournalSequenceError
Auto Trait Implementations§
impl Forget for JournalSequenceError
impl Freeze for JournalSequenceError
impl Move for JournalSequenceError
impl RefUnwindSafe for JournalSequenceError
impl Send for JournalSequenceError
impl Sync for JournalSequenceError
impl Unpin for JournalSequenceError
impl UnsafeUnpin for JournalSequenceError
impl UnwindSafe for JournalSequenceError
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