pub enum DiagnosticProbeError {
Show 13 variants
NoMarkets,
NoUsdValues,
TooManyMarkets {
got: usize,
},
TooManyUsdValues {
got: usize,
},
ZeroUsdValue,
DuplicateMarket {
market: Address,
},
PairsOfUnprobedMarket {
market: Address,
},
DuplicatePairsMarket {
market: Address,
},
PairCount {
market: Address,
got: usize,
},
SelfPair {
market: Address,
mint: Address,
},
CandidatePairCount {
got: usize,
},
CandidateSelfPair {
mint: Address,
},
UnsupportedAnchor {
anchor: &'static str,
},
}Expand description
Why a DiagnosticProbeParams is rejected at session creation.
Variants§
NoMarkets
markets and candidates are both empty.
NoUsdValues
TooManyMarkets
markets and candidates together are longer than MAX_DIAGNOSTIC_MARKETS.
TooManyUsdValues
usdValues is longer than MAX_DIAGNOSTIC_USD_VALUES.
ZeroUsdValue
usdValues contains 0.
DuplicateMarket
A market appears twice across markets and candidates.
PairsOfUnprobedMarket
pairs names a market that is not in markets.
DuplicatePairsMarket
PairCount
A market’s pair list is empty or longer than MAX_DIAGNOSTIC_MARKET_PAIRS.
SelfPair
A pair names the same mint twice.
CandidatePairCount
candidatePairs is empty or longer than MAX_DIAGNOSTIC_MARKET_PAIRS while
candidates is not.
CandidateSelfPair
A candidate pair names the same mint twice.
UnsupportedAnchor
The anchor is not afterSlot or afterEverySlot.
Trait Implementations§
Source§impl Clone for DiagnosticProbeError
impl Clone for DiagnosticProbeError
Source§impl Debug for DiagnosticProbeError
impl Debug for DiagnosticProbeError
Source§impl Display for DiagnosticProbeError
impl Display for DiagnosticProbeError
impl Eq for DiagnosticProbeError
Source§impl Error for DiagnosticProbeError
impl Error for DiagnosticProbeError
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 DiagnosticProbeError
impl PartialEq for DiagnosticProbeError
impl StructuralPartialEq for DiagnosticProbeError
Auto Trait Implementations§
impl Forget for DiagnosticProbeError
impl Freeze for DiagnosticProbeError
impl Move for DiagnosticProbeError
impl RefUnwindSafe for DiagnosticProbeError
impl Send for DiagnosticProbeError
impl Sync for DiagnosticProbeError
impl Unpin for DiagnosticProbeError
impl UnsafeUnpin for DiagnosticProbeErrorwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for DiagnosticProbeErrorwhere
&'static str: UnwindSafe,
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