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§
sourcefn setup(&mut self) -> Result<(), Error>
fn setup(&mut self) -> Result<(), Error>
Calls all required functions to assure the components functionality
sourcefn setup_inline(self) -> Result<Self, Error>where
Self: Sized,
fn setup_inline(self) -> Result<Self, Error>where
Self: Sized,
Points to `setup``, helper function