async_send_try_get

Macro async_send_try_get 

Source
macro_rules! async_send_try_get {
    (fn($input:ident: &mut $ity:ty) -> Result<($oty:ty, $aty:ty), $ety:ty> { $($v:tt)+ }) => { ... };
    (fn<$a:lifetime, $b:lifetime>($input:ident: &mut $ity:ty) -> Result<($oty:ty, $aty:ty), $ety:ty> { $($v:tt)+ }) => { ... };
}
Expand description

A macro for quickly implementing crate::AsyncSendTryGetFut without capturing.

If you need capturing, you will have to manually capture what you want in a user-defined struct and implement crate::AsyncSendTryGetFut for that struct.

For now this has to use Pin<Box<dyn Future>> due a compiler bug (rust-lang/rust#100013).This will change in a future release when this bug is fixed.