pub struct CallBuilder { /* 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(self, args: Vec<u8>) -> Self
pub fn with_raw_args(self, args: Vec<u8>) -> Self
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 Freeze for CallBuilder
impl RefUnwindSafe for CallBuilder
impl Send for CallBuilder
impl Sync for CallBuilder
impl Unpin for CallBuilder
impl UnwindSafe for CallBuilder
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