pub struct Thread { /* private fields */ }Expand description
Implementations§
Source§impl Thread
impl Thread
Sourcepub fn id(&self) -> usize
pub fn id(&self) -> usize
Returns the unique index assigned to this Thread.
The index can help identify the thread during debugging or logging.
Sourcepub fn max_concurrency(&self) -> usize
pub fn max_concurrency(&self) -> usize
Returns the maximum number of concurrent tasks permitted on this Thread.
This reflects the concurrency limit configured via the AsyncPoolBuilder.
Auto Trait Implementations§
impl Freeze for Thread
impl !RefUnwindSafe for Thread
impl Send for Thread
impl !Sync for Thread
impl Unpin for Thread
impl !UnwindSafe for Thread
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