pub struct AgentClient { /* private fields */ }
Implementations§
Source§impl AgentClient
impl AgentClient
pub fn new(info: Arc<ClientInfo>) -> Self
pub async fn request_capability( &self, app_name: String, app_desc: String, app_domain: String, app_url: Option<String>, app_icon_path: Option<String>, capabilities: Option<Vec<Capability>>, ) -> Result<String>
pub async fn retrieve_capability( &self, request_id: String, rand: String, ) -> Result<String>
pub async fn me(&self) -> Result<MeAgent>
pub async fn status(&self) -> Result<AgentStatusAgentStatus>
pub async fn get_apps(&self) -> Result<Vec<GetAppsAgentGetApps>>
pub async fn lock(&self, passphrase: String) -> Result<LockAgentLock>
pub async fn unlock( &self, passphrase: String, holochain: bool, ) -> Result<UnlockAgentUnlock>
pub async fn by_did(&self, did: String) -> Result<Option<ByDidAgentByDid>>
pub async fn generate( &self, passphrase: String, ) -> Result<GenerateAgentGenerate>
pub async fn sign_message( &self, message: String, ) -> Result<SignMessageAgentSignMessage>
pub async fn add_entanglement_proofs( &self, proofs: Vec<EntanglementProofInput>, ) -> Result<ResponseData>
pub async fn delete_entanglement_proofs( &self, proofs: Vec<EntanglementProofInput>, ) -> Result<ResponseData>
pub async fn entanglement_proof_pre_flight( &self, device_key: String, device_key_type: String, ) -> Result<ResponseData>
pub async fn watch(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for AgentClient
impl RefUnwindSafe for AgentClient
impl Send for AgentClient
impl Sync for AgentClient
impl Unpin for AgentClient
impl UnwindSafe for AgentClient
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