Struct onboard_computer::application::Application
source · pub struct Application {
uart: Uart<'static, UART1>,
rng: Rng<'static>,
onboard_led: OnboardLed,
}
Fields§
§uart: Uart<'static, UART1>
§rng: Rng<'static>
§onboard_led: OnboardLed
Implementations§
source§impl Application
impl Application
sourcepub fn init(peripherals: Peripherals) -> Self
pub fn init(peripherals: Peripherals) -> Self
Initialises all the peripherals which the Application
will use.
sourcepub fn run(self, executor: &'static mut Executor) -> !
pub fn run(self, executor: &'static mut Executor) -> !
Runs the application by spawning each of the Application
’s tasks
Auto Trait Implementations§
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more