pub struct CanicInternalClient { /* private fields */ }Expand description
CanicInternalClient
Generic protected internal client over generated endpoint descriptors.
Implementations§
Source§impl CanicInternalClient
impl CanicInternalClient
pub const fn new(canister_id: Principal) -> Self
pub const fn with_options(self, options: CanicInternalCallOptions) -> Self
pub const fn with_bounded_wait(self) -> Self
pub const fn with_unbounded_wait(self) -> Self
pub const fn with_cycles(self, cycles: u128) -> Self
pub const fn with_proof_ttl_secs(self, ttl_secs: u64) -> Self
pub async fn call_update<A>(
&self,
endpoint: &ProtectedInternalEndpoint,
caller_role: CanisterRole,
args: A,
) -> Result<CallResult, Error>where
A: ArgumentEncoder,
pub async fn call_update_with_single_role<A>(
&self,
endpoint: &ProtectedInternalEndpoint,
args: A,
) -> Result<CallResult, Error>where
A: ArgumentEncoder,
pub async fn call_update_result<T, A>( &self, endpoint: &ProtectedInternalEndpoint, caller_role: CanisterRole, args: A, ) -> Result<T, Error>
pub async fn call_update_result_with_single_role<T, A>( &self, endpoint: &ProtectedInternalEndpoint, args: A, ) -> Result<T, Error>
Trait Implementations§
Source§impl Clone for CanicInternalClient
impl Clone for CanicInternalClient
Source§fn clone(&self) -> CanicInternalClient
fn clone(&self) -> CanicInternalClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanicInternalClient
impl Debug for CanicInternalClient
impl Copy for CanicInternalClient
Auto Trait Implementations§
impl Freeze for CanicInternalClient
impl RefUnwindSafe for CanicInternalClient
impl Send for CanicInternalClient
impl Sync for CanicInternalClient
impl Unpin for CanicInternalClient
impl UnsafeUnpin for CanicInternalClient
impl UnwindSafe for CanicInternalClient
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