Struct rpi_led_matrix::LedRuntimeOptions [−][src]
pub struct LedRuntimeOptions(_);
Expand description
Options related to how the runtime operates, like GPIO slowdown or daemon/sudo privileges
Implementations
Creates a new LedRuntimeOptions
struct with the default parameters.
use rpi_led_matrix::{LedMatrix, LedRuntimeOptions};
let mut rt_options = LedRuntimeOptions::new();
rt_options.set_gpio_slowdown(3);
let matrix = LedMatrix::new(None, Some(rt_options)).unwrap();
Sets the GPIO slowdown, in . Needed for faster Pis/slower panels
If True, make the process run in the background as daemon.
If True, drop privileges from ‘root’ after initializing the hardware.
You almost definitely want this to be left as True. Use this if you know what you’re doing.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LedRuntimeOptions
impl Send for LedRuntimeOptions
impl Sync for LedRuntimeOptions
impl Unpin for LedRuntimeOptions
impl UnwindSafe for LedRuntimeOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.