Expand description
A structure representing control metadata
Fields
ctl_type: CtlType
The control type.
fmt: String
A 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):
N
nodeA
char *I
intIK[n]
temperature in Kelvin, multiplied by an optional single digit power of ten scaling factor: 1 (default) gives deciKelvin, 0 gives Kelvin, 3 gives milliKelvinIU
unsigned intL
longLU
unsigned longQ
quad_tQU
u_quad_tS,TYPE
struct TYPE structures
flags: u32
Implementations
sourceimpl CtlInfo
impl CtlInfo
sourcepub fn is_temperature(&self) -> bool
pub fn is_temperature(&self) -> bool
Is this sysctl a temperature?
sourceimpl CtlInfo
impl CtlInfo
sourcepub fn struct_type(&self) -> Option<String>
pub fn struct_type(&self) -> Option<String>
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 StructuralPartialEq for CtlInfo
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more