pub struct CallResult { /* private fields */ }Expand description
CallResult
Stable wrapper around an inter-canister call response.
This type exists to:
- decouple API consumers from infra response types
- provide uniform decoding helpers
- allow future extension without breaking callers
Implementations§
Source§impl CallResult
impl CallResult
pub fn candid<R>(&self) -> Result<R, Error>where
R: CandidType + DeserializeOwned,
pub fn candid_tuple<R>(&self) -> Result<R, Error>where
R: for<'de> ArgumentDecoder<'de>,
Auto Trait Implementations§
impl Freeze for CallResult
impl RefUnwindSafe for CallResult
impl Send for CallResult
impl Sync for CallResult
impl Unpin for CallResult
impl UnsafeUnpin for CallResult
impl UnwindSafe for CallResult
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