Enum pyth_min::error::GetPriceError
source · pub enum GetPriceError {
PriceTooOld,
MismatchedFeedId,
InsufficientVerificationLevel,
FeedIdMustBe32Bytes,
FeedIdNonHexCharacter,
}
Expand description
Standard Rust errors (NOT ANCHOR ERRORS) with the same names and internal debug message as Pyth’s expected Errors from the standard sdk.
Variants§
PriceTooOld
MismatchedFeedId
InsufficientVerificationLevel
FeedIdMustBe32Bytes
FeedIdNonHexCharacter
Trait Implementations§
source§impl Debug for GetPriceError
impl Debug for GetPriceError
source§impl Display for GetPriceError
impl Display for GetPriceError
source§impl Error for GetPriceError
impl Error for GetPriceError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 GetPriceError
impl PartialEq for GetPriceError
source§fn eq(&self, other: &GetPriceError) -> bool
fn eq(&self, other: &GetPriceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetPriceError
Auto Trait Implementations§
impl Freeze for GetPriceError
impl RefUnwindSafe for GetPriceError
impl Send for GetPriceError
impl Sync for GetPriceError
impl Unpin for GetPriceError
impl UnwindSafe for GetPriceError
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