Movatterモバイル変換


[0]ホーム

URL:


AsyncFnMut

std::ops

TraitAsyncFnMut 

1.85.0 ·Source
pub trait AsyncFnMut<Args>:AsyncFnOnce<Args>
where Args:Tuple,
{ typeCallRefFuture<'a>:Future<Output = Self::Output>where Self: 'a; // Required method extern "rust-call" fnasync_call_mut( &mut self, args: Args, ) -> Self::CallRefFuture<'_>;}
Expand description

An async-aware version of theFnMut trait.

Allasync fn and functions returning futures implement this trait.

Required Associated Types§

Source

typeCallRefFuture<'a>:Future<Output = Self::Output>where Self: 'a

🔬This is a nightly-only experimental API. (async_fn_traits)

Required Methods§

Source

extern "rust-call" fnasync_call_mut( &mut self, args: Args,) -> Self::CallRefFuture<'_>

🔬This is a nightly-only experimental API. (async_fn_traits)

Call theAsyncFnMut, returning a future which may borrow from the called closure.

Dyn Compatibility§

This trait isnotdyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

1.85.0 ·Source§

impl<A, F>AsyncFnMut<A> for&F
where A:Tuple, F:AsyncFn<A> + ?Sized,

Source§

typeCallRefFuture<'a> = <F asAsyncFnMut<A>>::CallRefFuture<'a>where&F: 'a

1.85.0 ·Source§

impl<A, F>AsyncFnMut<A> for&mut F
where A:Tuple, F:AsyncFnMut<A> + ?Sized,

Source§

typeCallRefFuture<'a> = <F asAsyncFnMut<A>>::CallRefFuture<'a>where&mut F: 'a

1.85.0 ·Source§

impl<Args, F, A>AsyncFnMut<Args> forBox<F, A>
where Args:Tuple, F:AsyncFnMut<Args> + ?Sized, A:Allocator,

Source§

typeCallRefFuture<'a> = <F asAsyncFnMut<Args>>::CallRefFuture<'a>whereBox<F, A>: 'a


[8]ページ先頭

©2009-2026 Movatter.jp