pub struct CpuInfo {Show 26 fields
pub processor: u32,
pub vendor_id: String,
pub cpu_family: String,
pub model: String,
pub model_name: String,
pub stepping: String,
pub microcode: String,
pub cpu_mhz: f64,
pub cache_size: String,
pub physical_id: String,
pub siblings: u32,
pub core_id: String,
pub cpu_cores: u32,
pub apic_id: String,
pub initial_apic_id: String,
pub fpu: String,
pub fpu_exception: String,
pub cpu_id_level: u32,
pub wp: String,
pub flags: Vec<String>,
pub bugs: Vec<String>,
pub bogo_mips: f64,
pub cl_flush_size: u32,
pub cache_alignment: u32,
pub address_sizes: String,
pub power_management: String,
}Fields§
§processor: u32§vendor_id: String§cpu_family: String§model: String§model_name: String§stepping: String§microcode: String§cpu_mhz: f64§cache_size: String§physical_id: String§siblings: u32§core_id: String§cpu_cores: u32§apic_id: String§initial_apic_id: String§fpu: String§fpu_exception: String§cpu_id_level: u32§wp: String§flags: Vec<String>§bugs: Vec<String>§bogo_mips: f64§cl_flush_size: u32§cache_alignment: u32§address_sizes: String§power_management: StringTrait Implementations§
Source§impl From<CpuInfo> for CpuInfo
impl From<CpuInfo> for CpuInfo
Source§fn from(proto: ProtoCpuInfo) -> Self
fn from(proto: ProtoCpuInfo) -> Self
Converts to this type from the input type.
Source§impl Message for CpuInfo
impl Message for CpuInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for CpuInfo
Auto Trait Implementations§
impl Freeze for CpuInfo
impl RefUnwindSafe for CpuInfo
impl Send for CpuInfo
impl Sync for CpuInfo
impl Unpin for CpuInfo
impl UnwindSafe for CpuInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request