Struct async_ops::Shl [−][src]
pub struct Shl;
Expand description
A Binary
operation that will concurrently resolve two Futures
and shl
their results.
Example
use futures::executor::block_on;
use async_ops::Shl;
let a = async { 42 };
let b = async { 2 };
let result = async {
async_ops::on(a).op(Shl, b).await
};
assert_eq!(std::ops::Shl::shl(42, 2), block_on(result));
Trait Implementations
type Output = AsyncShl<Lhs, Rhs>
type Output = AsyncShl<Lhs, Rhs>
The resulting type after applying the binary operation.