[−][src]Trait ledb_actix::StorageAddrExt
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
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,
A: Handler<M> + Send,
A::Context: ToEnvelope<A, M>,
M: Message<Result = Result<T, E>> + Send + 'static,
T: Send + 'static,
E: Send + 'static,
Provided methods
fn send_query<M, T, E>(
&self,
msg: M
) -> Pin<Box<dyn Future<Output = Result<T, 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,
&self,
msg: M
) -> Pin<Box<dyn Future<Output = Result<T, 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,
Send query and get unwrapped result
Implementations on Foreign Types
impl StorageAddrExt<Storage> for Addr<Storage>
[src]
fn get_storage_addr<M, T, E>(&self) -> &Addr<Storage> where
Storage: Handler<M>,
M: Message<Result = Result<T, E>> + Send,
T: Send + 'static,
E: Send + 'static,
[src]
Storage: Handler<M>,
M: Message<Result = Result<T, E>> + Send,
T: Send + 'static,
E: Send + 'static,