pub enum EraHistoryError {
PastTimeHorizon,
InvalidEraHistory,
SlotTooFar,
SlotArithmetic(SlotArithmeticError),
}Variants§
Trait Implementations§
Source§impl Debug for EraHistoryError
impl Debug for EraHistoryError
Source§impl<'de> Deserialize<'de> for EraHistoryError
impl<'de> Deserialize<'de> for EraHistoryError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EraHistoryError
impl Display for EraHistoryError
Source§impl Error for EraHistoryError
impl Error for EraHistoryError
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 From<SlotArithmeticError> for EraHistoryError
impl From<SlotArithmeticError> for EraHistoryError
Source§fn from(source: SlotArithmeticError) -> Self
fn from(source: SlotArithmeticError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EraHistoryError
impl PartialEq for EraHistoryError
Source§impl Serialize for EraHistoryError
impl Serialize for EraHistoryError
impl Eq for EraHistoryError
impl StructuralPartialEq for EraHistoryError
Auto Trait Implementations§
impl Freeze for EraHistoryError
impl RefUnwindSafe for EraHistoryError
impl Send for EraHistoryError
impl Sync for EraHistoryError
impl Unpin for EraHistoryError
impl UnsafeUnpin for EraHistoryError
impl UnwindSafe for EraHistoryError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more