Crate dioxus_shareables

Source
Expand description

Crate dioxus-shareables

This crate provides abstractions for global resource sharing in dioxus similar to fermi, but with a slightly different data model, and some extensions for shared structures.

The primary interfaces for the crate are Shared, shareable_struct and List

dioxus is still under development; if you’re using the latest nightly version of dioxus then your Cargo.toml should look something like this:

...
[dependencies]
...
dioxus-shareables = { version = "0.3.0", features = ["dixous-git"] }
...
[replace]
"dioxus-core:0.3.0" = { git = 'https://github.com/dioxuslabs/dioxus' }
"dioxus-hooks:0.3.0" = { git = 'https://github.com/dioxuslabs/dioxus' }

Re-exports§

pub use shared::Shared;
pub use list::List;
pub use list::ListEntry;

Modules§

list
mod list - lists of shared values.
shared
Module shared - Shared values.

Macros§

shareable
Declare a global variable for use as Shared hook.
shareable_struct
Create a struct definition for a global.
struct_actions
Get actions on a struct.

Structs§

RW
Marker for an access to shared data which is used for reading.
W
Marker for an access to shared data which is used for writing but not reading.

Traits§

Flag
A type flag for shared pointers.
InitType
A type flag for fields in shared structures.