#[repr(C)]pub struct RGBLedRuntimeOptions {
pub gpio_slowdown: c_int,
pub daemon: c_int,
pub drop_privileges: c_int,
pub do_gpio_init: bool,
}Expand description
Runtime options to simplify doing common things for many programs such as dropping privileges and becoming a daemon.
Fields§
§gpio_slowdown: c_int§daemon: c_int§drop_privileges: c_int§do_gpio_init: boolImplementations§
Source§impl RGBLedRuntimeOptions
impl RGBLedRuntimeOptions
pub fn new() -> Self
pub fn gpio_slowdown(self, slowdown: u32) -> Self
pub fn daemon(self, run_as_daemon: bool) -> Self
pub fn drop_priviliges(self, do_drop_privileges: bool) -> Self
pub fn do_gpio_init(self, do_gpio_init: bool) -> Self
Trait Implementations§
Source§impl Clone for RGBLedRuntimeOptions
impl Clone for RGBLedRuntimeOptions
Source§fn clone(&self) -> RGBLedRuntimeOptions
fn clone(&self) -> RGBLedRuntimeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RGBLedRuntimeOptions
Source§impl Debug for RGBLedRuntimeOptions
impl Debug for RGBLedRuntimeOptions
Auto Trait Implementations§
impl Freeze for RGBLedRuntimeOptions
impl RefUnwindSafe for RGBLedRuntimeOptions
impl Send for RGBLedRuntimeOptions
impl Sync for RGBLedRuntimeOptions
impl Unpin for RGBLedRuntimeOptions
impl UnsafeUnpin for RGBLedRuntimeOptions
impl UnwindSafe for RGBLedRuntimeOptions
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