pub struct ServerInstance {
pub name: String,
pub dir: String,
pub server: ServerConfig,
pub rcon: Option<RconConfig>,
pub jvm: JvmConfig,
}Expand description
A managed Minecraft server instance.
Fields§
§name: StringDisplay name for this server
dir: StringDirectory containing this server’s files (relative to config.toml)
server: ServerConfigServer configuration (jar, memory, etc.)
rcon: Option<RconConfig>RCON configuration (optional override)
jvm: JvmConfigJVM configuration
Trait Implementations§
Source§impl Clone for ServerInstance
impl Clone for ServerInstance
Source§fn clone(&self) -> ServerInstance
fn clone(&self) -> ServerInstance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerInstance
impl Debug for ServerInstance
Source§impl<'de> Deserialize<'de> for ServerInstance
impl<'de> Deserialize<'de> for ServerInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerInstance
impl RefUnwindSafe for ServerInstance
impl Send for ServerInstance
impl Sync for ServerInstance
impl Unpin for ServerInstance
impl UnsafeUnpin for ServerInstance
impl UnwindSafe for ServerInstance
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