pub struct RoleSpawner { /* private fields */ }Implementations§
Source§impl RoleSpawner
impl RoleSpawner
pub fn raw_spawner(&self) -> &LocalSpawner
pub fn spawn(&self, future: impl Future<Output = ()> + 'static)
pub fn on_shutdown(&self, future: impl Future<Output = ()> + 'static)
pub fn spawn_interval_loop<'a>( &self, interval_duration: Duration, f: impl FnMut() + 'static, )
Trait Implementations§
Source§impl Clone for RoleSpawner
impl Clone for RoleSpawner
Source§fn clone(&self) -> RoleSpawner
fn clone(&self) -> RoleSpawner
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 RoleSpawner
impl !RefUnwindSafe for RoleSpawner
impl !Send for RoleSpawner
impl !Sync for RoleSpawner
impl Unpin for RoleSpawner
impl !UnwindSafe for RoleSpawner
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