Crates.io | guest |
lib.rs | guest |
version | 0.2.0 |
source | src |
created_at | 2024-08-06 05:40:40.933085 |
updated_at | 2024-09-09 17:40:19.169249 |
description | By-value memory storage without by-value memory access. |
homepage | |
repository | https://github.com/Vi-Kitten/Guest |
max_upload_size | |
id | 1326929 |
size | 4,670 |
By-value memory storage without by-value memory access.
Guests allow one to have reading and writing access whilst garunteeing that the memory is handed on to the next owner after usage.
Some example types are as follows:
Arc<Guest<T>>
Arc<Mutex<Guest<T>>>
Arc<RwLock<Guest<T>>>
Some example callbacks could be:
std::mem::drop
move |last| sender.send(last).unwrap()
|last| capture = last