Enum DatapackRegistrySync
#[non_exhaustive]pub enum DatapackRegistrySync {
ServerOnly,
Required,
Optional,
}Expand description
How a registry’s entries reach joining clients.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ServerOnly
Entries stay on the server; a client needs nothing of the mod for them.
Required
Clients receive the entries, and a client without the mod is refused.
Optional
Clients with the mod receive the entries; others join without them.
Trait Implementations§
§impl Clone for DatapackRegistrySync
impl Clone for DatapackRegistrySync
§fn clone(&self) -> DatapackRegistrySync
fn clone(&self) -> DatapackRegistrySync
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 Copy for DatapackRegistrySync
§impl Debug for DatapackRegistrySync
impl Debug for DatapackRegistrySync
§impl Default for DatapackRegistrySync
impl Default for DatapackRegistrySync
§fn default() -> DatapackRegistrySync
fn default() -> DatapackRegistrySync
Returns the “default value” for a type. Read more
impl Eq for DatapackRegistrySync
§impl PartialEq for DatapackRegistrySync
impl PartialEq for DatapackRegistrySync
impl StructuralPartialEq for DatapackRegistrySync
Auto Trait Implementations§
impl Freeze for DatapackRegistrySync
impl RefUnwindSafe for DatapackRegistrySync
impl Send for DatapackRegistrySync
impl Sync for DatapackRegistrySync
impl Unpin for DatapackRegistrySync
impl UnsafeUnpin for DatapackRegistrySync
impl UnwindSafe for DatapackRegistrySync
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