[−][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
Implementations
impl CtlType
[src]
pub fn min_type_size(&self) -> usize
[src]
Trait Implementations
impl Clone for CtlType
[src]
impl Copy for CtlType
[src]
impl Debug for CtlType
[src]
impl<'a> From<&'a CtlValue> for CtlType
[src]
impl From<u32> for CtlType
[src]
impl PartialEq<CtlType> for CtlType
[src]
impl StructuralPartialEq for CtlType
[src]
Auto Trait Implementations
impl RefUnwindSafe for CtlType
impl Send for CtlType
impl Sync for CtlType
impl Unpin for CtlType
impl UnwindSafe for CtlType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &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> 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, 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>,