Crate mcpe_motd

Source
Expand description

§MCPE MOTD

A library to fetch some information from MCPE (MCBE actually) over raknet.

Structs§

MotdError
Custom error type.
ServerIdStringParsed
Parsed server id string. Be careful, if server id string is invalid (e.g. has fewer fields), lib will (at least try to) add default ones. However, there is UnconnectedPong struct with server_id_string_parsed_ok field.
UnconnectedPong
Parsed RakNet unconnected pong packet. Has more information than ServerIdStringParsed. Unlike ServerIdStringParsed, using UnconnectedPong you can check if server id string was parsed correctly (without adding default ones).

Enums§

MotdErrorCode
Enumerates the possible errors you can get.

Functions§

fetch_server_id_string
Returns parsed server id string or error explaining why it wasn’t parsed.
fetch_unconected_pong
Returns parsed RakNet unconnected pong packet or error explaining why packet wasn’t parsed.