[−][src]Struct pconvert_rust::parallelism::ThreadPoolStatus
Represents the status of the thread pool (e.g. size, queued jobs, active jobs).
Status counts use Atomic*
data types in order to be safely shared across workers.
Implementations
impl ThreadPoolStatus
[src]
pub fn new(size: usize) -> Self
[src]
pub fn size(&self) -> usize
[src]
pub fn queued(&self) -> usize
[src]
pub fn active(&self) -> usize
[src]
pub fn inc_queued_count(&self)
[src]
pub fn dec_queued_count(&self)
[src]
pub fn inc_active_count(&self)
[src]
pub fn dec_active_count(&self)
[src]
pub fn inc_size(&self)
[src]
pub fn dec_size(&self)
[src]
Trait Implementations
impl Clone for ThreadPoolStatus
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl IntoPyDict for ThreadPoolStatus
[src]
pub fn into_py_dict(self, py: Python<'_>) -> &PyDict
[src]
Auto Trait Implementations
impl RefUnwindSafe for ThreadPoolStatus
[src]
impl Send for ThreadPoolStatus
[src]
impl Sync for ThreadPoolStatus
[src]
impl Unpin for ThreadPoolStatus
[src]
impl UnwindSafe for ThreadPoolStatus
[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,