pub struct CallBuilder<'a> { /* private fields */ }Expand description
CallBuilder (api)
Implementations§
Source§impl CallBuilder<'_>
impl CallBuilder<'_>
Sourcepub fn with_arg<A>(self, arg: A) -> Result<Self, Error>where
A: CandidType,
pub fn with_arg<A>(self, arg: A) -> Result<Self, Error>where
A: CandidType,
Encode a single argument into Candid bytes (fallible).
Sourcepub fn with_args<A>(self, args: A) -> Result<Self, Error>where
A: ArgumentEncoder,
pub fn with_args<A>(self, args: A) -> Result<Self, Error>where
A: ArgumentEncoder,
Encode multiple arguments into Candid bytes (fallible).
Sourcepub fn with_raw_args<'b>(
self,
args: impl Into<Cow<'b, [u8]>>,
) -> CallBuilder<'b>
pub fn with_raw_args<'b>( self, args: impl Into<Cow<'b, [u8]>>, ) -> CallBuilder<'b>
Use pre-encoded Candid arguments (no validation performed).
pub fn with_cycles(self, cycles: u128) -> Self
pub fn with_intent(self, intent: IntentReservation) -> Self
pub async fn execute(self) -> Result<CallResult, Error>
Auto Trait Implementations§
impl<'a> Freeze for CallBuilder<'a>
impl<'a> RefUnwindSafe for CallBuilder<'a>
impl<'a> Send for CallBuilder<'a>
impl<'a> Sync for CallBuilder<'a>
impl<'a> Unpin for CallBuilder<'a>
impl<'a> UnsafeUnpin for CallBuilder<'a>
impl<'a> UnwindSafe for CallBuilder<'a>
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