Crate Cactus

Source
Expand description

The servers’s entrypoint file.

ModulesΒ§

args πŸ”’
commands πŸ”’
config πŸ”’
This module is the interface between the server.properties file. Querying for server settings.
consts πŸ”’
This module is where we store constants, like filepaths or the the version of the current Minecraft version that the server is implementing.
fs_manager πŸ”’
greetings πŸ”’
handlers πŸ”’
logging πŸ”’
net πŸ”’
This module manages the TCP server and how/where the packets are managed/sent.
player πŸ”’
shutdown πŸ”’
time πŸ”’

EnumsΒ§

ExitCode
Enum representing standardized server exit codes.

ConstantsΒ§

DISABLE_LOGGING_COLOR_AND_SAVE_TO_FILE πŸ”’

FunctionsΒ§

early_init πŸ”’
Logic that must executes as early as possibe
gracefully_exit
Gracefully exits the server with an exit code.
init πŸ”’
Essential server initialization logic.
main πŸ”’
start πŸ”’
Starts up the server.
test πŸ”’
A test fonction that’ll only run in debug-mode. (cargo run) and not (cargo run –release)