Enum ConfigKind
#[non_exhaustive]pub enum ConfigKind {
Client,
Common,
Server,
}Expand description
Which side reads a config and when (NeoForge’s ModConfig.Type).
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.
Client
The window only, when the game starts.
Common
Once per process: the window when the game starts, or a dedicated server when it starts. A single player’s server thread shares the window’s.
Server
The server, before native_server_about_to_start, for each world it
opens: the world’s serverconfig/<file> when there is one, else
config/<file>.
Trait Implementations§
§impl Clone for ConfigKind
impl Clone for ConfigKind
§fn clone(&self) -> ConfigKind
fn clone(&self) -> ConfigKind
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 ConfigKind
§impl Debug for ConfigKind
impl Debug for ConfigKind
impl Eq for ConfigKind
§impl Hash for ConfigKind
impl Hash for ConfigKind
§impl PartialEq for ConfigKind
impl PartialEq for ConfigKind
impl StructuralPartialEq for ConfigKind
Auto Trait Implementations§
impl Freeze for ConfigKind
impl RefUnwindSafe for ConfigKind
impl Send for ConfigKind
impl Sync for ConfigKind
impl Unpin for ConfigKind
impl UnsafeUnpin for ConfigKind
impl UnwindSafe for ConfigKind
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