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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.