[][src]Struct rpi_led_matrix::LedRuntimeOptions

#[repr(C)]pub struct LedRuntimeOptions { /* fields omitted */ }

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.