devstat

Struct devstat 

Source
#[repr(C)]
pub struct devstat {
Show 21 fields pub sequence0: u_int, pub allocated: c_int, pub start_count: u_int, pub end_count: u_int, pub busy_from: bintime, pub dev_links: __c_anonymous_stailq_entry_devstat, pub device_number: u32, pub device_name: [c_char; 16], pub unit_number: c_int, pub bytes: [u64; 4], pub operations: [u64; 4], pub duration: [bintime; 4], pub busy_time: bintime, pub creation_time: bintime, pub block_size: u32, pub tag_types: [u64; 3], pub flags: devstat_support_flags, pub device_type: devstat_type_flags, pub priority: devstat_priority, pub id: *const c_void, pub sequence1: u_int,
}

Fields§

§sequence0: u_int

Update sequence

§allocated: c_int

Allocated entry

§start_count: u_int

started ops

§end_count: u_int

completed ops

§busy_from: bintime

busy time unaccounted for since this time

§dev_links: __c_anonymous_stailq_entry_devstat§device_number: u32

Devstat device number.

§device_name: [c_char; 16]§unit_number: c_int§bytes: [u64; 4]§operations: [u64; 4]§duration: [bintime; 4]§busy_time: bintime§creation_time: bintime

Time the device was created.

§block_size: u32

Block size, bytes

§tag_types: [u64; 3]

The number of simple, ordered, and head of queue tags sent.

§flags: devstat_support_flags

Which statistics are supported by a given device.

§device_type: devstat_type_flags

Device type

§priority: devstat_priority

Controls list pos.

§id: *const c_void

Identification for GEOM nodes

§sequence1: u_int

Update sequence

Trait Implementations§

Source§

impl Clone for devstat

Source§

fn clone(&self) -> devstat

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for devstat

Source§

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

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

impl Copy for devstat

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.