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, token_program: Pubkey, e: T) -> Selfwhere
T: ToString,
pub fn get_multiple_accounts<T>(e: T) -> Selfwhere
T: ToString,
pub fn invalid_pubkey<D>(pubkey: &str, 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 internal<D>(data: D) -> Selfwhere
D: Serialize,
Trait Implementations§
Source§impl Clone for SurfpoolError
impl Clone for SurfpoolError
Source§fn clone(&self) -> SurfpoolError
fn clone(&self) -> SurfpoolError
Returns a copy 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<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