pub struct LocalSpawner { /* private fields */ }Implementations§
Source§impl LocalSpawner
impl LocalSpawner
pub fn new<T>(inner: T) -> LocalSpawnerwhere
T: IntoLocalSpawner,
pub fn spawn<F>(&self, f: F) -> Result<(), SpawnError>
Trait Implementations§
Source§impl Clone for LocalSpawner
impl Clone for LocalSpawner
Source§fn clone(&self) -> LocalSpawner
fn clone(&self) -> LocalSpawner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalSpawner
impl RefUnwindSafe for LocalSpawner
impl !Send for LocalSpawner
impl !Sync for LocalSpawner
impl Unpin for LocalSpawner
impl UnwindSafe for LocalSpawner
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