pub struct CtlInfo {
pub ctl_type: CtlType,
pub fmt: String,
pub flags: u32,
}Expand description
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§
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