[−][src]Struct ic_utils::call::AsyncCaller
An async caller, encapsulating a call to an update method.
Implementations
impl<'agent, Out> AsyncCaller<'agent, Out> where
Out: for<'de> ArgumentDecoder<'de> + Send + Sync, [src]
Out: for<'de> ArgumentDecoder<'de> + Send + Sync,
pub async fn call(self) -> Result<RequestId, AgentError>[src]
pub async fn call_and_wait<W>(self, waiter: W) -> Result<Out, AgentError> where
W: Waiter, [src]
W: Waiter,
pub async fn call_and_wait_one<W, T>(self, waiter: W) -> Result<T, AgentError> where
W: Waiter,
T: DeserializeOwned, [src]
W: Waiter,
T: DeserializeOwned,
pub fn map<Out2, Map>(self, map: Map) -> MappedAsyncCaller<Out, Out2, Self, Map> where
Out2: for<'de> ArgumentDecoder<'de> + Send + Sync,
Map: Sync + Send + Fn(Out) -> Out2, [src]
Out2: for<'de> ArgumentDecoder<'de> + Send + Sync,
Map: Sync + Send + Fn(Out) -> Out2,
Trait Implementations
impl<'agent, Out> AsyncCall<Out> for AsyncCaller<'agent, Out> where
Out: for<'de> ArgumentDecoder<'de> + Send + Sync, [src]
Out: for<'de> ArgumentDecoder<'de> + Send + Sync,
fn call<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<RequestId, AgentError>> + Send + 'async_trait>> where
Self: 'async_trait, [src]
self
) -> Pin<Box<dyn Future<Output = Result<RequestId, AgentError>> + Send + 'async_trait>> where
Self: 'async_trait,
fn call_and_wait<'async_trait, W>(
self,
waiter: W
) -> Pin<Box<dyn Future<Output = Result<Out, AgentError>> + Send + 'async_trait>> where
W: Waiter,
W: 'async_trait,
Self: 'async_trait, [src]
self,
waiter: W
) -> Pin<Box<dyn Future<Output = Result<Out, AgentError>> + Send + 'async_trait>> where
W: Waiter,
W: 'async_trait,
Self: 'async_trait,
#[must_use]fn and_then<'async_trait, Out2, R, AndThen>(
self,
and_then: AndThen
) -> Pin<Box<dyn Future<Output = AndThenAsyncCaller<Out, Out2, Self, R, AndThen>> + Send + 'async_trait>> where
Self: Sized + Sync + Send,
Out: 'async_trait,
Out2: for<'de> ArgumentDecoder<'de> + Send + Sync,
R: Future<Output = Result<Out2, AgentError>> + Send + Sync,
AndThen: Sync + Send + Fn(Out) -> R,
Out2: 'async_trait,
R: 'async_trait,
AndThen: 'async_trait,
Self: Send + 'async_trait, [src]
self,
and_then: AndThen
) -> Pin<Box<dyn Future<Output = AndThenAsyncCaller<Out, Out2, Self, R, AndThen>> + Send + 'async_trait>> where
Self: Sized + Sync + Send,
Out: 'async_trait,
Out2: for<'de> ArgumentDecoder<'de> + Send + Sync,
R: Future<Output = Result<Out2, AgentError>> + Send + Sync,
AndThen: Sync + Send + Fn(Out) -> R,
Out2: 'async_trait,
R: 'async_trait,
AndThen: 'async_trait,
Self: Send + 'async_trait,
Auto Trait Implementations
impl<'agent, Out> !RefUnwindSafe for AsyncCaller<'agent, Out>
impl<'agent, Out> Send for AsyncCaller<'agent, Out>
impl<'agent, Out> Sync for AsyncCaller<'agent, Out>
impl<'agent, Out> Unpin for AsyncCaller<'agent, Out> where
Out: Unpin,
Out: Unpin,
impl<'agent, Out> !UnwindSafe for AsyncCaller<'agent, Out>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,