pub trait StorageAddrExt<A> {
    fn get_storage_addr<M, T, E>(&self) -> &Addr<A>
    where
        A: Handler<M> + Send,
        A::Context: ToEnvelope<A, M>,
        M: Message<Result = Result<T, E>> + Send + 'static,
        T: Send + 'static,
        E: Send + 'static
; fn send_query<M, T, E>(
        &self,
        msg: M
    ) -> Box<dyn Future<Item = T, Error = Either<MailboxError, E>> + Send>
    where
        A: Handler<M> + Send,
        A::Context: ToEnvelope<A, M>,
        M: Message<Result = Result<T, E>> + Send + 'static,
        T: Send + 'static,
        E: Send + 'static
, { ... } }
Expand description

Helper for sending queries

This is alternative to Addr<Storage>::send which unwraps results of type Result using Either type for wrapping errors.

Required Methods

Provided Methods

Send query and get unwrapped result

Implementations on Foreign Types

Implementors