Struct poseidon_client::RpcClient
source · [−]pub struct RpcClient { /* private fields */ }Implementations
sourceimpl 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 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 RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl UnwindSafe for RpcClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more