pub struct NamespacedThread<T: Send + 'static> { /* private fields */ }
Expand description
Thread similar to the std, but with a name that can be nested.
Implementations§
Source§impl<T: Send + 'static> NamespacedThread<T>
impl<T: Send + 'static> NamespacedThread<T>
Sourcepub fn spawn<F>(name: &str, f: F) -> Self
pub fn spawn<F>(name: &str, f: F) -> Self
Similar to thread::spawn()
but with a name.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for NamespacedThread<T>
impl<T> !RefUnwindSafe for NamespacedThread<T>
impl<T> Send for NamespacedThread<T>
impl<T> Sync for NamespacedThread<T>
impl<T> Unpin for NamespacedThread<T>
impl<T> !UnwindSafe for NamespacedThread<T>
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