Module linera_sdk::views
source · Expand description
Helper types for using linera_views
to store application state.
Re-exports§
pub use linera_views;
Structs§
- A type to interface with the key value storage provided to applications.
Enums§
- Main error type for the crate.
Traits§
- Sometimes we need a serialization that is different from the usual one and for example preserves order.
{to/from}_custom_bytes
has to be coherent with theBorrow
trait. - A
View
whose staged modifications can be saved in storage. - A view gives exclusive access to read and write the data stored at an underlying address in storage.
Type Aliases§
- An alias to
linera_views::collection_view::ByteCollectionView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::map_view::ByteMapView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::set_view::ByteSetView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::collection_view::CollectionView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::collection_view::CustomCollectionView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::map_view::CustomMapView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::set_view::CustomSetView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::log_view::LogView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::map_view::MapView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::queue_view::QueueView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::collection_view::ReadGuardedView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::register_view::RegisterView
that uses the WebAssembly-specificViewStorageContext
. - An alias to
linera_views::set_view::SetView
that uses the WebAssembly-specificViewStorageContext
. - Implementation of
linera_views::context::Context
to be used for data storage by Linera applications.