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]
impl Debug for CtlTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for CtlType[src]
impl Copy for CtlTypeimpl Clone for CtlType[src]
impl Clone for CtlTypefn clone(&self) -> CtlType[src]
fn clone(&self) -> CtlTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for CtlType[src]
impl PartialEq for CtlTypefn eq(&self, other: &CtlType) -> bool[src]
fn eq(&self, other: &CtlType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl From<u32> for CtlType[src]
impl From<u32> for CtlTypeimpl<'a> From<&'a CtlValue> for CtlType[src]
impl<'a> From<&'a CtlValue> for CtlType