pub struct Client<C> { /* private fields */ }
Expand description
Client defines the base configuration for building RPC clients to
communicate with Anchor programs running on a Solana cluster. It’s
primary use is to build a Program
client via the program
method.
Implementations§
Source§impl<C: Clone + Deref<Target = impl Signer>> Client<C>
impl<C: Clone + Deref<Target = impl Signer>> Client<C>
pub fn new(cluster: Cluster, payer: C) -> Self
pub fn new_with_options( cluster: Cluster, payer: C, options: CommitmentConfig, ) -> Self
pub fn program( &self, program_id: Pubkey, rpc_client: AsyncRpcClient, ) -> Result<Program<C>, ClientError>
Auto Trait Implementations§
impl<C> Freeze for Client<C>where
C: Freeze,
impl<C> RefUnwindSafe for Client<C>where
C: RefUnwindSafe,
impl<C> Send for Client<C>where
C: Send,
impl<C> Sync for Client<C>where
C: Sync,
impl<C> Unpin for Client<C>where
C: Unpin,
impl<C> UnwindSafe for Client<C>where
C: UnwindSafe,
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