pub struct OtxPoolRpcClient { /* private fields */ }Implementations§
Source§impl OtxPoolRpcClient
impl OtxPoolRpcClient
pub fn new(uri: String) -> Self
pub fn submit_otx(&self, otx: OpenTransaction) -> Result<H256>
pub fn query_otx_status_by_id(&self, otx: H256) -> Result<Option<OpenTxStatus>>
pub fn get_atomic_swap_info(&self) -> Result<PluginInfo>
pub fn get_all_swap_proposals(&self) -> Result<Vec<SwapProposalWithOtxId>>
Auto Trait Implementations§
impl !RefUnwindSafe for OtxPoolRpcClient
impl !UnwindSafe for OtxPoolRpcClient
impl Freeze for OtxPoolRpcClient
impl Send for OtxPoolRpcClient
impl Sync for OtxPoolRpcClient
impl Unpin for OtxPoolRpcClient
impl UnsafeUnpin for OtxPoolRpcClient
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