pub enum StorageScope<'a> {
Global,
Player(&'a str),
World(&'a str),
Entity(&'a str),
Chunk(&'a str, i32, i32),
}Expand description
Determines which backing file a Storage uses.
Variants§
Global
One store shared across the entire server (the default).
Player(&'a str)
Per-player store, keyed by UUID string.
World(&'a str)
Per-dimension store, keyed by dimension id (e.g. "minecraft:overworld").
Entity(&'a str)
Per-entity store, keyed by UUID string.
Chunk(&'a str, i32, i32)
Per-chunk store, keyed by dimension + chunk coordinates.
Trait Implementations§
Source§impl<'a> Clone for StorageScope<'a>
impl<'a> Clone for StorageScope<'a>
Source§fn clone(&self) -> StorageScope<'a>
fn clone(&self) -> StorageScope<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for StorageScope<'a>
Auto Trait Implementations§
impl<'a> Freeze for StorageScope<'a>
impl<'a> RefUnwindSafe for StorageScope<'a>
impl<'a> Send for StorageScope<'a>
impl<'a> Sync for StorageScope<'a>
impl<'a> Unpin for StorageScope<'a>
impl<'a> UnsafeUnpin for StorageScope<'a>
impl<'a> UnwindSafe for StorageScope<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more