Skip to main content

synced_entry

Function synced_entry 

Source
pub fn synced_entry<V>(key: impl ToString) -> GlobalSyncedMetaEntry<V>
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)