Trait syact::Setup

source ·
pub trait Setup {
    // Provided methods
    fn setup(&mut self) -> Result<(), Error> { ... }
    fn setup_inline(self) -> Result<Self, Error>
       where Self: Sized { ... }
}
Expand description

A trait that provides a universal setup function,

§Pin management

For dynamic initialization purposes, all pin creations should run in a setup() function

Provided Methods§

source

fn setup(&mut self) -> Result<(), Error>

Calls all required functions to assure the components functionality

source

fn setup_inline(self) -> Result<Self, Error>
where Self: Sized,

Points to `setup``, helper function

Implementors§