Struct concurrency_traits::StdThreadFunctions [−][src]
pub struct StdThreadFunctions;
Std implementations for TimeFunctions
, ThreadFunctions], [
TryThreadSpawner], and [
ThreadParker`.
Trait Implementations
impl Clone for StdThreadFunctions
[src]
impl Clone for StdThreadFunctions
[src]fn clone(&self) -> StdThreadFunctions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, O> ConcurrentSystem<'a, O> for StdThreadFunctions where
O: Send + 'static,
[src]
impl<'a, O> ConcurrentSystem<'a, O> for StdThreadFunctions where
O: Send + 'static,
[src]impl Copy for StdThreadFunctions
[src]
impl Copy for StdThreadFunctions
[src]impl ThreadFunctions for &StdThreadFunctions
[src]
impl ThreadFunctions for &StdThreadFunctions
[src]impl ThreadParker for &StdThreadFunctions
[src]
impl ThreadParker for &StdThreadFunctions
[src]impl TimeFunctions for &StdThreadFunctions
[src]
impl TimeFunctions for &StdThreadFunctions
[src]type InstantType = Instant
The type of an instant for this system. Analog for std::time::Instant
.
fn current_time(self) -> Self::InstantType
[src]
impl<O> TryThreadSpawner<O> for &StdThreadFunctions where
O: Send + 'static,
[src]
impl<O> TryThreadSpawner<O> for &StdThreadFunctions where
O: Send + 'static,
[src]type ThreadHandle = JoinHandle<O>
The handle that is returned from spawning. Analog to std::thread::JoinHandle
.
type SpawnError = Infallible
The error that can occur from starting the thread.
fn try_spawn(
self,
func: impl FnOnce() -> O + 'static + Send
) -> Result<Self::ThreadHandle, Self::SpawnError>
[src]
self,
func: impl FnOnce() -> O + 'static + Send
) -> Result<Self::ThreadHandle, Self::SpawnError>
Auto Trait Implementations
impl RefUnwindSafe for StdThreadFunctions
impl RefUnwindSafe for StdThreadFunctions
impl Send for StdThreadFunctions
impl Send for StdThreadFunctions
impl Sync for StdThreadFunctions
impl Sync for StdThreadFunctions
impl Unpin for StdThreadFunctions
impl Unpin for StdThreadFunctions
impl UnwindSafe for StdThreadFunctions
impl UnwindSafe for StdThreadFunctions