[−][src]Struct rpi_led_matrix::LedRuntimeOptions
The Rust representation of LedRuntimeOptions, which contains parameters to specify how the library behaves at runtime.
Implementations
impl LedRuntimeOptions
[src]
pub fn new() -> Self
[src]
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();
pub fn set_gpio_slowdown(&mut self, gpio_slowdown: u32)
[src]
Sets the GPIO slowdown, in . Needed for faster Pis/slower panels
pub fn set_daemon(&mut self, daemon: bool)
[src]
If True, make the process run in the background as daemon.
pub fn set_drop_privileges(&mut self, drop_privileges: bool)
[src]
If True, drop privileges from 'root' after initializing the hardware.
pub fn set_do_gpio_init(&mut self, do_gpio_init: bool)
[src]
You almost definitely want this to be left as True. Use this if you know what you're doing.
Trait Implementations
impl Debug for LedRuntimeOptions
[src]
impl Default for LedRuntimeOptions
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,