pub struct Processor {
pub id: ProcessorId,
pub online: bool,
pub capacity: u32,
}Expand description
One logical processor.
Fields§
§id: ProcessorIdThis processor’s identity.
online: boolWhether the processor is currently active. A processor slot can exist – count toward a group’s maximum – without being online, since Windows reserves group capacity for processors that may be added later.
capacity: u32A relative scheduling weight for this processor, higher meaning more
capable, on no fixed scale. On Windows this is the owning core’s raw
EfficiencyClass; 0 for an offline processor or one with no known
owning core.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Processor
impl<'de> Deserialize<'de> for Processor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Processor
impl StructuralPartialEq for Processor
Auto Trait Implementations§
impl Freeze for Processor
impl RefUnwindSafe for Processor
impl Send for Processor
impl Sync for Processor
impl Unpin for Processor
impl UnsafeUnpin for Processor
impl UnwindSafe for Processor
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