pub struct BitOr;
Expand description
A Binary
operation that will concurrently resolve two Futures
and bitor
their results.
§Example
use futures_executor::block_on;
use async_ops::BitOr;
let a = async { 42 };
let b = async { 2 };
let result = async {
async_ops::on(a).op(BitOr, b).await
};
assert_eq!(std::ops::BitOr::bitor(42, 2), block_on(result));
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitOr
impl RefUnwindSafe for BitOr
impl Send for BitOr
impl Sync for BitOr
impl Unpin for BitOr
impl UnwindSafe for BitOr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more