[−][src]Struct abscissa_core::application::cell::Cell
Newtype wrapper for the cell type we use.
This allows us to define methods on the type, which we do below on the
AppCell
alias (trait bounds on const fn
types aren't yet stable).
Methods
impl<T> Cell<T>
[src]
impl<A: Application> Cell<Lock<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.
Auto Trait Implementations
impl<T> RefUnwindSafe for Cell<T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
impl<T> Send for Cell<T> where
T: Send,
T: Send,
impl<T> Sync for Cell<T> where
T: Send + Sync,
T: Send + Sync,
impl<T> Unpin for Cell<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Cell<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&Self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,