Enum psyoptions::error::OptionsError [−][src]
pub enum OptionsError {}Show variants
CantMintExpired, IncorrectQuoteAssetKey, QuoteAndUnderlyingAssetMustDiffer, OptionWriterNotFound, OptionMarketNotExpired, OptionMarketHasExpired, IncorrectPool, IncorrectMarketTokens, BadMarketAddress, BadMarketOwner, MarketAlreadyInitialized, InvalidInitializationParameters, BadFeeOwner, InvalidTokenProgram,
Expand description
Errors that may be returned by the Options program.
Variants
Expiration date is in the past and the client tried to mint a contract token
The mint that controls the account passed as the quote_asset account does not match the mint of the quote asset on the market
The quote asset and underlying asset cannot be the same
The OptionWriter was not found in the market registry
The OptionMarket has not expired yet and this operation requires it to be expired
The OptionMarket has expired operation isn’t possible
The wrong pool key was used
The Option Token or Writer Token does not match the Option Market
The OptionMarket address provided does not match
The OptionMarket owner is not the program
The OptionMarket has already been initiated
Initalizing the market with invalid parameters
The fee owner does not match the program’s designated fee owner
Incorrect token program ID
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OptionsError
impl Send for OptionsError
impl Sync for OptionsError
impl Unpin for OptionsError
impl UnwindSafe for OptionsError
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V