[−][src]Enum sysctl::CtlType
An Enum that represents a sysctl's type information.
Example
ⓘThis example is not tested
let val_enum = &sysctl::value("kern.osrevision").unwrap(); let val_type: sysctl::CtlType = val_enum.into(); assert_eq!(val_type, sysctl::CtlType::Int);
Variants
Node
Int
String
S64
Struct
Uint
Long
Ulong
U64
U8
U16
S8
S16
S32
U32
None
Methods
impl CtlType
[src]
pub fn min_type_size(&self) -> usize
[src]
Trait Implementations
impl Clone for CtlType
[src]
fn clone(&self) -> CtlType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<u32> for CtlType
[src]
impl<'a> From<&'a CtlValue> for CtlType
[src]
impl PartialEq<CtlType> for CtlType
[src]
fn eq(&self, other: &CtlType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Copy for CtlType
[src]
impl Debug for CtlType
[src]
Auto Trait Implementations
impl Sync for CtlType
impl Send for CtlType
impl Unpin for CtlType
impl RefUnwindSafe for CtlType
impl UnwindSafe for CtlType
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,