pub struct CtlInfo {
pub ctl_type: CtlType,
pub fmt: String,
pub flags: u32,
}
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§
Trait Implementations§
impl StructuralPartialEq for CtlInfo
Auto Trait Implementations§
impl Freeze for CtlInfo
impl RefUnwindSafe for CtlInfo
impl Send for CtlInfo
impl Sync for CtlInfo
impl Unpin for CtlInfo
impl UnwindSafe for CtlInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more