pub struct AsyncFn<F: Fn() -> U + Send + Clone + 'static, U: Future + Send + 'static>(pub F);Tuple Fields§
§0: FTrait Implementations§
Source§impl<F: Clone + Fn() -> U + Send + Clone + 'static, U: Clone + Future + Send + 'static> Clone for AsyncFn<F, U>
impl<F: Clone + Fn() -> U + Send + Clone + 'static, U: Clone + Future + Send + 'static> Clone for AsyncFn<F, U>
Source§impl<F: Debug + Fn() -> U + Send + Clone + 'static, U: Debug + Future + Send + 'static> Debug for AsyncFn<F, U>
impl<F: Debug + Fn() -> U + Send + Clone + 'static, U: Debug + Future + Send + 'static> Debug for AsyncFn<F, U>
Source§impl<F: Fn() -> U + Send + Clone + 'static, U: Future + Send + 'static> From<F> for AsyncFn<F, U>
impl<F: Fn() -> U + Send + Clone + 'static, U: Future + Send + 'static> From<F> for AsyncFn<F, U>
Source§impl<F: Fn() -> U + Send + Clone + 'static, U: Future + Send + 'static> Runnable for AsyncFn<F, U>
impl<F: Fn() -> U + Send + Clone + 'static, U: Future + Send + 'static> Runnable for AsyncFn<F, U>
type Handle = RuntimeJoinHandle<()>
fn run_async(&self) -> Self::Handle
fn is_async(&self) -> bool
fn name(&self) -> String
fn set_name(&mut self, _: &str)
fn run(&self) -> Self::Handle
fn metadata(&self) -> Option<RunnableMetadata>
fn run_type_name(&self) -> String
fn run_type_id(&self) -> TypeId
Auto Trait Implementations§
impl<F, U> Freeze for AsyncFn<F, U>where
F: Freeze,
impl<F, U> RefUnwindSafe for AsyncFn<F, U>where
F: RefUnwindSafe,
impl<F, U> Send for AsyncFn<F, U>
impl<F, U> Sync for AsyncFn<F, U>where
F: Sync,
impl<F, U> Unpin for AsyncFn<F, U>where
F: Unpin,
impl<F, U> UnwindSafe for AsyncFn<F, U>where
F: UnwindSafe,
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