Struct windows::Win32::System::ComponentServices::IComStaThreadPoolKnobs2
pub struct IComStaThreadPoolKnobs2(/* private fields */);
Implementations§
§impl IComStaThreadPoolKnobs2
impl IComStaThreadPoolKnobs2
pub unsafe fn SetMinThreadCount(&self, minthreads: u32) -> Result<()>
pub unsafe fn GetMinThreadCount(&self) -> Result<u32>
pub unsafe fn SetMaxThreadCount(&self, maxthreads: u32) -> Result<()>
pub unsafe fn GetMaxThreadCount(&self) -> Result<u32>
pub unsafe fn SetActivityPerThread( &self, activitiesperthread: u32 ) -> Result<()>
pub unsafe fn GetActivityPerThread(&self) -> Result<u32>
pub unsafe fn SetActivityRatio(&self, activityratio: f64) -> Result<()>
pub unsafe fn GetActivityRatio(&self) -> Result<f64>
pub unsafe fn GetThreadCount(&self) -> Result<u32>
pub unsafe fn GetQueueDepth(&self) -> Result<u32>
pub unsafe fn SetQueueDepth(&self, dwqdepth: i32) -> Result<()>
pub unsafe fn GetMaxCPULoad(&self) -> Result<u32>
pub unsafe fn SetMaxCPULoad(&self, pdwload: i32) -> Result<()>
pub unsafe fn GetCPUMetricEnabled(&self) -> Result<BOOL>
pub unsafe fn SetCPUMetricEnabled<P0>(&self, bmetricenabled: P0) -> Result<()>where
P0: IntoParam<BOOL>,
pub unsafe fn GetCreateThreadsAggressively(&self) -> Result<BOOL>
pub unsafe fn SetCreateThreadsAggressively<P0>(
&self,
bmetricenabled: P0
) -> Result<()>where
P0: IntoParam<BOOL>,
pub unsafe fn GetMaxCSR(&self) -> Result<u32>
pub unsafe fn SetMaxCSR(&self, dwcsr: i32) -> Result<()>
pub unsafe fn GetWaitTimeForThreadCleanup(&self) -> Result<u32>
pub unsafe fn SetWaitTimeForThreadCleanup( &self, dwthreadcleanupwaittime: i32 ) -> Result<()>
Trait Implementations§
§impl Clone for IComStaThreadPoolKnobs2
impl Clone for IComStaThreadPoolKnobs2
§fn clone(&self) -> IComStaThreadPoolKnobs2
fn clone(&self) -> IComStaThreadPoolKnobs2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IComStaThreadPoolKnobs2
impl Debug for IComStaThreadPoolKnobs2
§impl From<&IComStaThreadPoolKnobs2> for &IComStaThreadPoolKnobs
impl From<&IComStaThreadPoolKnobs2> for &IComStaThreadPoolKnobs
§fn from(value: &IComStaThreadPoolKnobs2) -> Self
fn from(value: &IComStaThreadPoolKnobs2) -> Self
Converts to this type from the input type.
§impl From<&IComStaThreadPoolKnobs2> for &IUnknown
impl From<&IComStaThreadPoolKnobs2> for &IUnknown
§fn from(value: &IComStaThreadPoolKnobs2) -> Self
fn from(value: &IComStaThreadPoolKnobs2) -> Self
Converts to this type from the input type.
§impl From<IComStaThreadPoolKnobs2> for IComStaThreadPoolKnobs
impl From<IComStaThreadPoolKnobs2> for IComStaThreadPoolKnobs
§fn from(value: IComStaThreadPoolKnobs2) -> Self
fn from(value: IComStaThreadPoolKnobs2) -> Self
Converts to this type from the input type.
§impl From<IComStaThreadPoolKnobs2> for IUnknown
impl From<IComStaThreadPoolKnobs2> for IUnknown
§fn from(value: IComStaThreadPoolKnobs2) -> Self
fn from(value: IComStaThreadPoolKnobs2) -> Self
Converts to this type from the input type.
§impl Interface for IComStaThreadPoolKnobs2
impl Interface for IComStaThreadPoolKnobs2
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IComStaThreadPoolKnobs2
impl PartialEq for IComStaThreadPoolKnobs2
§fn eq(&self, other: &IComStaThreadPoolKnobs2) -> bool
fn eq(&self, other: &IComStaThreadPoolKnobs2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IComStaThreadPoolKnobs2
impl StructuralPartialEq for IComStaThreadPoolKnobs2
Auto Trait Implementations§
impl RefUnwindSafe for IComStaThreadPoolKnobs2
impl !Send for IComStaThreadPoolKnobs2
impl !Sync for IComStaThreadPoolKnobs2
impl Unpin for IComStaThreadPoolKnobs2
impl UnwindSafe for IComStaThreadPoolKnobs2
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