pub struct BlockData<T>(/* private fields */);Expand description
A value kept for each block, by dimension and place (its chunk’s
store, as <x>_<y>_<z>.<key> within the chunk): removed as it’s
broken or another is put there.
Implementations§
Source§impl<T: Schema + Default + Send + 'static> BlockData<T>
impl<T: Schema + Default + Send + 'static> BlockData<T>
pub const fn new(key: &'static str) -> Self
Sourcepub const fn synced(key: &'static str) -> Self
pub const fn synced(key: &'static str) -> Self
Kept, and sent to the clients that see its owner as it changes (their reads the server’s value; their writes their own until it sends the next).
Auto Trait Implementations§
impl<T> !Freeze for BlockData<T>
impl<T> RefUnwindSafe for BlockData<T>
impl<T> Send for BlockData<T>
impl<T> Sync for BlockData<T>
impl<T> Unpin for BlockData<T>
impl<T> UnsafeUnpin for BlockData<T>
impl<T> UnwindSafe for BlockData<T>
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