pub enum BacktestError {
Show 15 variants
InvalidTransactionEncoding {
index: usize,
error: String,
},
InvalidTransactionFormat {
index: usize,
error: String,
},
InvalidAccountEncoding {
address: String,
encoding: BinaryEncoding,
error: String,
},
InvalidAccountOwner {
address: String,
error: String,
},
InvalidAccountPubkey {
address: String,
error: String,
},
NoMoreBlocks,
AdvanceSlotFailed {
slot: u64,
error: String,
},
InvalidRequest {
error: String,
},
Internal {
error: String,
},
InvalidBlockhashFormat {
slot: u64,
error: String,
},
InitializingSysvarsFailed {
slot: u64,
error: String,
},
ClerkError {
error: String,
},
SimulationError {
error: String,
},
SessionNotFound {
session_id: String,
},
SessionOwnerMismatch,
}Expand description
Error variants surfaced to backtest RPC clients.
Variants§
InvalidTransactionEncoding
InvalidTransactionFormat
InvalidAccountEncoding
InvalidAccountOwner
InvalidAccountPubkey
NoMoreBlocks
AdvanceSlotFailed
InvalidRequest
Internal
InvalidBlockhashFormat
InitializingSysvarsFailed
ClerkError
SimulationError
SessionNotFound
SessionOwnerMismatch
Trait Implementations§
Source§impl Clone for BacktestError
impl Clone for BacktestError
Source§fn clone(&self) -> BacktestError
fn clone(&self) -> BacktestError
Returns a duplicate of the value. Read more
1.0.0 · 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 BacktestError
impl Debug for BacktestError
Source§impl<'de> Deserialize<'de> for BacktestError
impl<'de> Deserialize<'de> for BacktestError
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 BacktestError
impl Display for BacktestError
Source§impl Error for BacktestError
impl Error for BacktestError
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<BacktestError> for BacktestResponse
impl From<BacktestError> for BacktestResponse
Source§fn from(error: BacktestError) -> Self
fn from(error: BacktestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BacktestError
impl RefUnwindSafe for BacktestError
impl Send for BacktestError
impl Sync for BacktestError
impl Unpin for BacktestError
impl UnsafeUnpin for BacktestError
impl UnwindSafe for BacktestError
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