Struct message_io::util::thread::NamespacedThread [−][src]
pub struct NamespacedThread<T: Send + 'static> { /* fields omitted */ }
Thread similar to the std, but with a name that can be nested.
Implementations
impl<T: Send + 'static> NamespacedThread<T>
[src]
impl<T: Send + 'static> NamespacedThread<T>
[src]pub fn spawn<F>(name: &str, f: F) -> Self where
F: FnOnce() -> T,
F: Send + 'static,
[src]
F: FnOnce() -> T,
F: Send + 'static,
Similar to thread::spawn()
but with a name.
pub fn join(&mut self) -> T
[src]
Wait the thread to finish.
pub fn try_join(&mut self) -> Option<T>
[src]
Wait the thread to finish.
Returns the inner T
value if never was joined, None
otherwise
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for NamespacedThread<T>
impl<T> !RefUnwindSafe for NamespacedThread<T>
impl<T> Send for NamespacedThread<T>
impl<T> Send for NamespacedThread<T>
impl<T> Sync for NamespacedThread<T>
impl<T> Sync for NamespacedThread<T>
impl<T> Unpin for NamespacedThread<T>
impl<T> Unpin for NamespacedThread<T>
impl<T> !UnwindSafe for NamespacedThread<T>
impl<T> !UnwindSafe for NamespacedThread<T>