[−][src]Struct scoped_spawn::ScopedSpawner
Methods
impl<Spawn: Spawn + Clone + Send + Sync> ScopedSpawner<Spawn>
[src]
Trait Implementations
impl<Spawn: Clone + Spawn + Send + Sync> Clone for ScopedSpawner<Spawn>
[src]
fn clone(&self) -> ScopedSpawner<Spawn>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Spawn: Spawn + Clone + Send + Sync> ScopedSpawn for ScopedSpawner<Spawn>
[src]
type CancelSender = RemoteCancelSenderWithSignal
type DoneReceiver = RemoteDoneReceiverWithSignal
type FutureCancelSender = RemoteCancelSenderWithSignal
type FutureDoneReceiver = RemoteDoneReceiverWithSignal
type Raw = RemoteSpawner
fn spawn<Fut, Fun, Done>(&self, fun: Fun, done: Done) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
Fun: FnOnce(Self) -> Fut,
Done: FnOnce() + Send + 'static,
[src]
Fut: Future<Output = ()> + Send + 'static,
Fun: FnOnce(Self) -> Fut,
Done: FnOnce() + Send + 'static,
fn spawn_with_signal<Fut, Fun, Done>(
&self,
fun: Fun,
done: Done
) -> Result<ParentSignals<Self::CancelSender, Self::DoneReceiver>, SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
Fun: FnOnce(Self) -> Fut,
Done: FnOnce() + Send + 'static,
[src]
&self,
fun: Fun,
done: Done
) -> Result<ParentSignals<Self::CancelSender, Self::DoneReceiver>, SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
Fun: FnOnce(Self) -> Fut,
Done: FnOnce() + Send + 'static,
fn spawn_future<Fut, Done>(
&self,
fut: Fut,
done: Done
) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
Done: FnOnce() + Send + 'static,
[src]
&self,
fut: Fut,
done: Done
) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
Done: FnOnce() + Send + 'static,
fn spawn_future_with_signal<Fut, Done>(
&self,
fut: Fut,
done: Done
) -> Result<ParentSignals<Self::FutureCancelSender, Self::FutureDoneReceiver>, SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
Done: FnOnce() + Send + 'static,
[src]
&self,
fut: Fut,
done: Done
) -> Result<ParentSignals<Self::FutureCancelSender, Self::FutureDoneReceiver>, SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
Done: FnOnce() + Send + 'static,
fn as_raw(&self) -> &Self::Raw
[src]
fn into_raw(self) -> Self::Raw
[src]
Auto Trait Implementations
impl<Spawn> RefUnwindSafe for ScopedSpawner<Spawn> where
Spawn: RefUnwindSafe,
Spawn: RefUnwindSafe,
impl<Spawn> Send for ScopedSpawner<Spawn>
impl<Spawn> Sync for ScopedSpawner<Spawn>
impl<Spawn> Unpin for ScopedSpawner<Spawn> where
Spawn: Unpin,
Spawn: Unpin,
impl<Spawn> UnwindSafe for ScopedSpawner<Spawn> where
Spawn: UnwindSafe,
Spawn: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,