Struct workflow_rpc::asynchronous::client::RpcClient
source · [−]Implementations
sourceimpl<Ops> RpcClient<Ops>where
Ops: Into<u32> + Send + Sync + 'static,
impl<Ops> RpcClient<Ops>where
Ops: Into<u32> + Send + Sync + 'static,
pub fn new(url: &str) -> Result<RpcClient<Ops>>
pub fn init_ctl(&self) -> Receiver<Ctl>
pub async fn connect(
&self,
block_until_connected: bool
) -> Result<Option<Listener>>
pub async fn shutdown(&self) -> Result<()>
pub fn is_open(&self) -> bool
pub async fn call_callback_with_buffer(
&self,
op: Ops,
message: Message<'_>,
callback: RpcResponseFn
) -> Result<()>
pub async fn call_async_with_buffer(
&self,
op: Ops,
message: Message<'_>
) -> Result<Vec<u8>>
pub async fn call<Req, Resp>(&self, op: Ops, req: Req) -> Result<Resp>where
Req: BorshSerialize + Send + Sync + 'static,
Resp: BorshDeserialize + Send + Sync + 'static,
Trait Implementations
Auto Trait Implementations
impl<Ops> RefUnwindSafe for RpcClient<Ops>where
Ops: RefUnwindSafe,
impl<Ops> Send for RpcClient<Ops>
impl<Ops> Sync for RpcClient<Ops>
impl<Ops> Unpin for RpcClient<Ops>where
Ops: Unpin,
impl<Ops> UnwindSafe for RpcClient<Ops>where
Ops: UnwindSafe,
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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