#[repr(u32)]pub enum StreakError {
Show 41 variants
InvalidInstruction = 0,
AlreadyInitialized = 1,
Unauthorized = 2,
BadPda = 3,
NotInitialized = 4,
Overflow = 5,
BadMint = 6,
InsufficientTreasury = 9,
BadTicketUnit = 10,
BadMarketState = 12,
BettingClosed = 13,
DuplicatePosition = 14,
PositionAlreadyHandled = 15,
NotAWinner = 16,
EmptyWinningSide = 17,
InvalidTreasuryPayPool = 18,
InsufficientTickets = 19,
LedgerNotReady = 20,
PythBadOwner = 21,
PythInvalidAccount = 22,
OraclePriceStale = 23,
OracleNormalize = 24,
OracleParityTie = 25,
MarketNotOracleAnchored = 26,
InvalidPythPriceFeed = 30,
AnchorTooEarly = 31,
AnchorWindowExpired = 32,
MarketNotAnchoredYet = 33,
MarketAlreadyAnchored = 34,
InvalidExecutorTreasuryKind = 35,
InvalidExecutorTreasuryPayload = 36,
WrongMarketSequenceForCreate = 37,
BetWrongMarketPeriod = 38,
MarketLineReleaseInvalid = 39,
InvalidMarketSeries = 40,
UnresolvedCommittedStakes = 41,
MergeCommittedBlocked = 42,
PlaceBetNothingToActivate = 43,
OracleVoidThreshold = 44,
MarketVoided = 45,
VoidPositionInvalidState = 46,
}Variants§
InvalidInstruction = 0
AlreadyInitialized = 1
BadPda = 3
NotInitialized = 4
Overflow = 5
BadMint = 6
InsufficientTreasury = 9
BadTicketUnit = 10
BadMarketState = 12
BettingClosed = 13
DuplicatePosition = 14
PositionAlreadyHandled = 15
NotAWinner = 16
EmptyWinningSide = 17
InvalidTreasuryPayPool = 18
InsufficientTickets = 19
LedgerNotReady = 20
PythBadOwner = 21
PythInvalidAccount = 22
OraclePriceStale = 23
OracleNormalize = 24
OracleParityTie = 25
MarketNotOracleAnchored = 26
InvalidPythPriceFeed = 30
AnchorTooEarly = 31
AnchorWindowExpired = 32
MarketNotAnchoredYet = 33
MarketAlreadyAnchored = 34
InvalidExecutorTreasuryKind = 35
InvalidExecutorTreasuryPayload = 36
WrongMarketSequenceForCreate = 37
BetWrongMarketPeriod = 38
MarketLineReleaseInvalid = 39
InvalidMarketSeries = 40
UnresolvedCommittedStakes = 41
MergeCommittedBlocked = 42
PlaceBetNothingToActivate = 43
OracleVoidThreshold = 44
MarketVoided = 45
VoidPositionInvalidState = 46
Trait Implementations§
Source§impl Clone for StreakError
impl Clone for StreakError
Source§fn clone(&self) -> StreakError
fn clone(&self) -> StreakError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreakError
impl Debug for StreakError
Source§impl Display for StreakError
impl Display for StreakError
Source§impl Error for StreakError
impl Error for StreakError
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 From<StreakError> for ProgramError
impl From<StreakError> for ProgramError
Source§fn from(e: StreakError) -> Self
fn from(e: StreakError) -> Self
Converts to this type from the input type.
Source§impl From<StreakError> for u32
impl From<StreakError> for u32
Source§fn from(enum_value: StreakError) -> Self
fn from(enum_value: StreakError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StreakError
impl PartialEq for StreakError
Source§fn eq(&self, other: &StreakError) -> bool
fn eq(&self, other: &StreakError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StreakError
impl Eq for StreakError
impl StructuralPartialEq for StreakError
Auto Trait Implementations§
impl Freeze for StreakError
impl RefUnwindSafe for StreakError
impl Send for StreakError
impl Sync for StreakError
impl Unpin for StreakError
impl UnsafeUnpin for StreakError
impl UnwindSafe for StreakError
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.