Struct managecraft::Client[][src]

pub struct Client {
    pub url: String,
    pub port: u16,
    pub connection: Connection,
}
Expand description

Client used to communicate with the Minecraft server

Fields

url: String

Url That connection is pointing to

port: u16

Port that connection is pointing to

connection: Connection

RCON Connection client uses to communicate with server

Implementations

Instantiates a new client for communicating with the minecraft server. This will also attempt to connect to the server

Executes an arbitrary command on the server

Broadcasts the message provided to the server

Saves the world state to disk with the option to temporarily freeze the server and flush save data saving quicker

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.