Struct kvm_bindings::kvm_stats_desc

source ·
#[repr(C)]
pub struct kvm_stats_desc { pub flags: __u32, pub exponent: __s16, pub size: __u16, pub offset: __u32, pub bucket_size: __u32, pub name: __IncompleteArrayField<c_char>, }
Available on x86-64 only.
Expand description

struct kvm_stats_desc - Descriptor of a KVM statistics. @flags: Annotations of the stats, like type, unit, etc. @exponent: Used together with @flags to determine the unit. @size: The number of data items for this stats. Every data item is of type __u64. @offset: The offset of the stats to the start of stat structure in structure kvm or kvm_vcpu. @bucket_size: A parameter value used for histogram stats. It is only used for linear histogram stats, specifying the size of the bucket; @name: The name string for the stats. Its size is indicated by the &kvm_stats_header->name_size.

Fields§

§flags: __u32§exponent: __s16§size: __u16§offset: __u32§bucket_size: __u32§name: __IncompleteArrayField<c_char>

Trait Implementations§

source§

impl Debug for kvm_stats_desc

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for kvm_stats_desc

source§

fn default() -> kvm_stats_desc

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.