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

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

Trait Implementations

impl Debug for CtlType
[src]

[src]

Formats the value using the given formatter.

impl Copy for CtlType
[src]

impl Clone for CtlType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for CtlType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl From<u32> for CtlType
[src]

[src]

Performs the conversion.

impl<'a> From<&'a CtlValue> for CtlType
[src]

[src]

Performs the conversion.