[−][src]Struct sysctl::CtlInfo
A structure representing control metadata
Fields
ctl_type: CtlTypeThe control type.
fmt: StringA string which specifies the format of the OID in a symbolic way.
This format is used as a hint by sysctl(8) to apply proper data formatting for display purposes.
Formats defined in sysctl(9):
NnodeAchar *IintIK[n]temperature in Kelvin, multiplied by an optional single digit power of ten scaling factor: 1 (default) gives deciKelvin, 0 gives Kelvin, 3 gives milliKelvinIUunsigned intLlongLUunsigned longQquad_tQUu_quad_tS,TYPEstruct TYPE structures
flags: u32Implementations
impl CtlInfo[src]
pub fn is_temperature(&self) -> bool[src]
Is this sysctl a temperature?
impl CtlInfo[src]
pub fn flags(&self) -> CtlFlags[src]
Return the flags for this sysctl.
pub fn struct_type(&self) -> Option<String>[src]
If the sysctl is a structure, return the structure type string.
Checks whether the format string starts with S, and returns the rest
of the format string or None if the format String does not have a struct
hint.
Trait Implementations
impl Debug for CtlInfo[src]
impl PartialEq<CtlInfo> for CtlInfo[src]
impl StructuralPartialEq for CtlInfo[src]
Auto Trait Implementations
impl RefUnwindSafe for CtlInfo
impl Send for CtlInfo
impl Sync for CtlInfo
impl Unpin for CtlInfo
impl UnwindSafe for CtlInfo
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, 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>,