[][src]Type Definition abscissa_core::application::cell::AppCell

type AppCell<A> = Cell<Lock<A>>;

Application cells.

These are defined as a type alias as it's not yet stable to have trait bounds on types with const fn yet.

Methods

impl<A: Application> AppCell<A>[src]

pub fn read(&'static self) -> Reader<A>[src]

Get the application state, acquiring a shared, read-only lock around it which permits concurrent access by multiple readers.

pub fn write(&'static self) -> Writer<A>[src]

Obtain an exclusive lock on the application state, allowing it to be accessed mutably.