pub fn synced_entry<V>(key: impl ToString) -> GlobalSyncedMetaEntry<V>where
V: Serialize + DeserializeOwned,Expand description
Provides access to read or modify global synced meta of alt:V resource.
ยงExamples
let example_entry = altv::meta::synced_entry("example");
// Set "example" key of global synced meta to `123`
example_entry.set(&123)?;
// Read "example" key of global synced meta
let value: Option<i32> = example_entry.get()?; // Some(123)