Struct leaf_rpc_client::RpcClient
source · pub struct RpcClient { /* private fields */ }Implementations§
source§impl RpcClient
impl RpcClient
pub async fn connect(uri: Uri, auth_token: Option<&str>) -> Result<Self>
pub async fn read_entity<L: Into<ExactLink>>( &self, link: L, ) -> Result<Option<(Digest, Entity)>>
pub async fn del_entity<L: Into<ExactLink>>(&self, link: L) -> Result<()>
pub async fn list_entities<L: Into<ExactLink>>( &self, link: L, ) -> Result<Vec<ExactLink>>
pub async fn del_components<C: Component, L: Into<ExactLink>>( &self, link: L, ) -> Result<Option<Digest>>
pub async fn add_component<C: Component, L: Into<ExactLink>>( &self, link: L, component: C, replace_existing: bool, ) -> Result<Digest>
pub async fn get_components<C: Component, L: Into<ExactLink>>( &self, _link: L, ) -> Result<Option<(Digest, Vec<C>)>>
pub async fn create_namespace(&self) -> Result<NamespaceId>
pub async fn import_namespace_secret( &self, namespace: NamespaceSecretKey, ) -> Result<NamespaceId>
pub async fn get_namespace_secret( &self, namespace: NamespaceSecretKey, ) -> Result<Option<NamespaceSecretKey>>
pub async fn create_subspace(&self) -> Result<SubspaceId>
pub async fn import_subspace_secret( &self, subspace: SubspaceSecretKey, ) -> Result<SubspaceId>
pub async fn get_subspace_secret( &self, subspace: SubspaceSecretKey, ) -> Result<Option<SubspaceSecretKey>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcClient
impl !RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl !UnwindSafe for RpcClient
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)