Enum sysctl::CtlType
[−]
[src]
#[repr(u32)]pub enum CtlType { Node, Int, String, S64, Struct, Uint, Long, Ulong, U64, U8, U16, S8, S16, S32, U32, None, Temperature, }
An Enum that represents a sysctl's type information.
Example
extern crate sysctl; let val_enum = &sysctl::value("kern.osrevision") .expect("could not get kern.osrevision sysctl"); let val_type: sysctl::CtlType = val_enum.into(); assert_eq!(val_type, sysctl::CtlType::Int);
Variants
NodeIntStringS64StructUintLongUlongU64U8U16S8S16S32U32NoneTemperature
Trait Implementations
impl Debug for CtlType[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Copy for CtlType[src]
impl Clone for CtlType[src]
fn clone(&self) -> CtlType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for CtlType[src]
fn eq(&self, __arg_0: &CtlType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.