pub struct RpcClient { /* private fields */ }Implementations§
Source§impl RpcClient
impl RpcClient
pub fn new() -> Self
pub fn add_header(&mut self, key: &str, value: &str) -> &mut Self
pub fn add_body(&mut self, body: JsonValue) -> &mut Self
pub fn add_commitment(&mut self, commitment: Commitment) -> &mut Self
pub fn common_methods(&mut self, body: JsonValue) -> &mut Self
pub fn prepare_transaction( &mut self, transaction: &Transaction, ) -> PoseidonResult<&mut Self>
pub fn send(&self) -> Task<PoseidonResult<Response>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcClient
impl RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl UnwindSafe for RpcClient
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
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