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