Skip to content

Explore async_fn_traits  #97

@Xuanwo

Description

@Xuanwo
pub trait AsyncFnMut<Args>: AsyncFnOnce<Args>
where
    Args: Tuple,
{
    type CallRefFuture<'a>: Future<Output = Self::Output>
       where Self: 'a;

    // Required method
    extern "rust-call" fn async_call_mut(
        &mut self,
        args: Args,
    ) -> Self::CallRefFuture<'_>;
}

AsyncFnMut is the async version of FnMut. With tuple_traits and async_fn_traits, maybe we can retry a function with args.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions