pub struct Client {
pub mu: String,
pub cu: String,
pub compute_gateway: String,
/* private fields */
}Fields§
§mu: String§cu: String§compute_gateway: StringImplementations§
Source§impl Client
impl Client
pub fn new(signer: ARSigner) -> Self
pub fn with_mu(self, mu: &str) -> Self
pub fn with_cu(self, cu: &str) -> Self
pub fn with_compute_gateway(self, gateway: &str) -> Self
pub async fn send_message( &self, process_id: &str, data: &[u8], tags: Vec<Tag>, anchor: Option<&[u8]>, options: Option<SendMessageOptions>, ) -> Result<String>
pub async fn spawn_process( &self, module_tx_id: &str, data: &[u8], tags: Vec<Tag>, anchor: Option<&[u8]>, scheduler: Option<&str>, ) -> Result<String>
pub async fn dry_run( &self, process_id: &str, data: &[u8], tags: Vec<Tag>, anchor: Option<&[u8]>, owner: Option<&str>, ) -> Result<ResponseCu>
pub async fn get_compute(&self, process_id: &str, path: &str) -> Result<Vec<u8>>
pub async fn get_compute_string( &self, process_id: &str, path: &str, ) -> Result<String>
pub async fn get_compute_json( &self, process_id: &str, path: &str, ) -> Result<Value>
pub async fn wait_for_result( &self, message_id: &str, process_id: &str, timeout: Duration, poll_interval: Duration, ) -> Result<ResponseCu>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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