Struct sysctl::Ctl [−][src]
Expand description
This struct represents a system control.
Fields
oid: Vec<c_int>
Trait Implementations
Ctl implements the IntoIterator trait to allow for easy iteration over nodes.
Example
use sysctl::Sysctl; let kern = sysctl::Ctl::new("kern"); for ctl in kern { println!("{}", ctl.name().unwrap()); }
Returns a result containing the sysctl name on success, or a SysctlError on failure. Read more
Returns a result containing the sysctl value type on success, or a Sysctl Error on failure. Read more
Returns a result containing the sysctl description if success, or an Error on failure. Read more
Returns a result containing the sysctl value on success, or a SysctlError on failure. Read more
A generic method that takes returns a result containing the sysctl value if success, or a SysctlError on failure. Read more
Returns a result containing the sysctl value as String on success, or a SysctlError on failure. Read more
Sets the value of a sysctl. Fetches and returns the new value if successful, or returns a SysctlError on failure. Read more
Sets the value of a sysctl with input as string. Fetches and returns the new value if successful, or returns a SysctlError on failure. Read more
Auto Trait Implementations
impl RefUnwindSafe for Ctl
impl UnwindSafe for Ctl
Blanket Implementations
Mutably borrows from an owned value. Read more