pub struct Client { /* private fields */ }Implementations§
source§impl Client
impl Client
pub fn new(agent: Arc<Agent>, cluster: Principal) -> Client
sourcepub async fn admin_set_managers(
&self,
args: BTreeSet<Principal>,
) -> Result<(), String>
pub async fn admin_set_managers( &self, args: BTreeSet<Principal>, ) -> Result<(), String>
the caller of agent should be canister controller
sourcepub async fn admin_sign_access_token(
&self,
args: Token,
) -> Result<ByteBuf, String>
pub async fn admin_sign_access_token( &self, args: Token, ) -> Result<ByteBuf, String>
the caller of agent should be canister manager
sourcepub async fn admin_attach_policies(&self, args: Token) -> Result<(), String>
pub async fn admin_attach_policies(&self, args: Token) -> Result<(), String>
the caller of agent should be canister manager
sourcepub async fn admin_detach_policies(&self, args: Token) -> Result<(), String>
pub async fn admin_detach_policies(&self, args: Token) -> Result<(), String>
the caller of agent should be canister manager
pub async fn access_token(&self, audience: Principal) -> Result<ByteBuf, String>
pub async fn get_cluster_info(&self) -> Result<ClusterInfo, String>
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 !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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)