pub struct SurfpoolError(/* private fields */);Implementations§
Source§impl SurfpoolError
impl SurfpoolError
pub fn from_try_send_error<T>(e: TrySendError<T>) -> Self
pub fn client_error(e: ClientError) -> Self
pub fn no_locker() -> Self
pub fn set_account<T>(pubkey: Pubkey, e: T) -> Selfwhere
T: ToString,
pub fn get_account<T>(pubkey: Pubkey, e: T) -> Selfwhere
T: ToString,
pub fn get_token_accounts<T>(
owner: Pubkey,
filter: &TokenAccountsFilter,
e: T,
) -> Selfwhere
T: ToString,
pub fn get_token_accounts_by_delegate_error<T>(
delegate: Pubkey,
filter: &TokenAccountsFilter,
e: T,
) -> Selfwhere
T: ToString,
pub fn unsupported_token_program(program_id: Pubkey) -> Self
pub fn get_program_accounts<T>(program_id: Pubkey, e: T) -> Selfwhere
T: ToString,
pub fn get_token_largest_accounts<T>(mint: Pubkey, e: T) -> Selfwhere
T: ToString,
pub fn get_multiple_accounts<T>(e: T) -> Selfwhere
T: ToString,
pub fn get_largest_accounts<T>(e: T) -> Selfwhere
T: ToString,
pub fn get_signatures_for_address<T>(e: T) -> Selfwhere
T: ToString,
pub fn invalid_pubkey<D>(pubkey: &str, data: D) -> Selfwhere
D: Serialize,
pub fn invalid_pubkey_at_index<D>(pubkey: &str, index: usize, data: D) -> Selfwhere
D: Serialize,
pub fn invalid_signature<D>(signature: &str, data: D) -> Selfwhere
D: Serialize,
pub fn invalid_program_account<P, D>(program_id: P, data: D) -> Self
pub fn expected_program_account<P>(program_id: P) -> Selfwhere
P: Display,
pub fn account_not_found<P>(pubkey: P) -> Selfwhere
P: Display,
pub fn transaction_not_found<S>(signature: S) -> Selfwhere
S: Display,
pub fn invalid_account_data<P, D, M>( pubkey: P, data: D, message: Option<M>, ) -> Self
pub fn invalid_account_owner<P, M>(pubkey: P, message: Option<M>) -> Self
pub fn invalid_lookup_index<P>(pubkey: P) -> Selfwhere
P: Display,
pub fn invalid_base64_data<D>(typing: &str, data: D) -> Selfwhere
D: Display,
pub fn deserialize_error<D>(typing: &str, data: D) -> Selfwhere
D: Display,
pub fn internal<D>(data: D) -> Selfwhere
D: Serialize,
pub fn sig_verify_replace_recent_blockhash_collision() -> Self
pub fn slot_too_old(slot: Slot) -> Self
pub fn get_block(e: ClientError, block: Slot) -> Self
pub fn token_mint_not_found(mint: Pubkey) -> Self
pub fn unpack_token_account() -> Self
pub fn unpack_mint_account() -> Self
pub fn invalid_token_account_state(state: &str) -> Self
pub fn transaction_not_found_in_svm<S>(signature: S) -> Selfwhere
S: Display,
pub fn tag_not_found(tag: &str) -> Self
Trait Implementations§
Source§impl Clone for SurfpoolError
impl Clone for SurfpoolError
Source§fn clone(&self) -> SurfpoolError
fn clone(&self) -> SurfpoolError
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 SurfpoolError
impl Debug for SurfpoolError
Source§impl Display for SurfpoolError
impl Display for SurfpoolError
Source§impl Error for SurfpoolError
impl Error for SurfpoolError
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<Error> for SurfpoolError
impl From<Error> for SurfpoolError
Source§fn from(e: ClientError) -> Self
fn from(e: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for SurfpoolError
impl From<EncodeError> for SurfpoolError
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<SurfpoolError> for Error
impl From<SurfpoolError> for Error
Source§fn from(e: SurfpoolError) -> Self
fn from(e: SurfpoolError) -> Self
Converts to this type from the input type.
Source§impl<T> From<SurfpoolError> for Pin<Box<dyn Future<Output = Result<T>> + Send>>
impl<T> From<SurfpoolError> for Pin<Box<dyn Future<Output = Result<T>> + Send>>
Source§fn from(e: SurfpoolError) -> Self
fn from(e: SurfpoolError) -> Self
Converts to this type from the input type.
Source§impl From<SurfpoolError> for String
impl From<SurfpoolError> for String
Source§fn from(e: SurfpoolError) -> Self
fn from(e: SurfpoolError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TrySendError<T>> for SurfpoolError
impl<T> From<TrySendError<T>> for SurfpoolError
Source§fn from(val: TrySendError<T>) -> Self
fn from(val: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SurfpoolError
impl RefUnwindSafe for SurfpoolError
impl Send for SurfpoolError
impl Sync for SurfpoolError
impl Unpin for SurfpoolError
impl UnwindSafe for SurfpoolError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more