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