pub struct PdhQuery(/* private fields */);Implementations§
Source§impl PdhQuery
impl PdhQuery
Sourcepub fn add_counter(&self, full_counter_path: String) -> PdhCounter
pub fn add_counter(&self, full_counter_path: String) -> PdhCounter
将指定的计数器添加到查询。
full_counter_path 包含计数器路径的字符串。 有关计数器路径格式的详细信息,请参阅指定计数器路径。
Sourcepub fn add_english_counter(&self, full_counter_path: String) -> PdhCounter
pub fn add_english_counter(&self, full_counter_path: String) -> PdhCounter
将指定的非特定语言计数器添加到查询。
full_counter_path 包含计数器路径的字符串。 有关计数器路径格式的详细信息,请参阅指定计数器路径。
Sourcepub fn collect_data(&self) -> &Self
pub fn collect_data(&self) -> &Self
收集指定查询中所有计数器的当前原始数据值,并更新每个计数器的状态代码。
Trait Implementations§
impl Send for PdhQuery
impl Sync for PdhQuery
Auto Trait Implementations§
impl Freeze for PdhQuery
impl RefUnwindSafe for PdhQuery
impl Unpin for PdhQuery
impl UnwindSafe for PdhQuery
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