application:: lock:: Lock
RwLock for accessing
Supports multiple concurrent readers (immutable-only) with an exclusive mutable writer.
impl<A: Application> Lock<A>[src]
Create a new lock around the given application
Get the application state, acquiring a shared, read-only lock around it which permits concurrent access by multiple readers.
If the application has not yet been initialized, calls
Obtain an exclusive lock on the application state, allowing it to be accessed mutably.
impl<A> RefUnwindSafe for Lock<A>
impl<A> UnwindSafe for Lock<A>
fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)[src]
type Error = Infallible
The type returned in the event of a conversion error.