Expand description
Data types that are meant to be shared and read across Duat.
The data types revolve around the RwLock struct from
parking_lot, and are adapters that may block the mutation of
the inner data, for the purpose of making it available for reading
to any extension on Duat.
The first data type is RwData, which is a read and write
wrapper over information. It should mostly not be shared, being
used instead to write information while making sure that no other
part of the code is still reading it. The second data type is
RoData, or read only data. It is derived from the first
one, and cannot mutate the inner data.
This type is used internally in order to keep track of state, like widgets, input methods, etc.
One of the main external uses for this macro is in creating
automatically update StatusLine fields.
Modules§
Structs§
- A read-only reference to information.
- A read write shared reference to data
Traits§
Type Aliases§
- A reader-writer lock
- RAII structure used to release the shared read access of a lock when dropped.
- RAII structure used to release the exclusive write access of a lock when dropped.