Struct msp::BedrockServer
source · pub struct BedrockServer {
pub edition: String,
pub motd_line_1: String,
pub protocol_version: i32,
pub version_name: String,
pub online_players: i32,
pub max_players: i32,
pub server_id: String,
pub motd_line_2: String,
pub game_mode: String,
pub game_mode_id: u8,
pub port_ipv4: u16,
pub port_ipv6: u16,
}
Expand description
Bedrock server info type.
For the meaning of motd_line_1
and motd_line_2
refer to the following examples and images:
motd_line_1 = "Dedicated Server"
motd_line_2 = "Bedrock level"
Result:
Fields§
§edition: String
MCPE or MCEE(Education Edition) for Education Edition
motd_line_1: String
MOTD line 1 for upstream display.
protocol_version: i32
Protocol version.
version_name: String
Version name.
online_players: i32
Online players.
max_players: i32
Max players.
server_id: String
Server unique id.
motd_line_2: String
MOTD line 2 for downstream display.
game_mode: String
Game mode.
game_mode_id: u8
Game mode id.
port_ipv4: u16
Ports required to connect to the server using IPv4.
port_ipv6: u16
Ports required to connect to the server using IPv6.
Trait Implementations§
source§impl Debug for BedrockServer
impl Debug for BedrockServer
source§impl Display for BedrockServer
impl Display for BedrockServer
Auto Trait Implementations§
impl RefUnwindSafe for BedrockServer
impl Send for BedrockServer
impl Sync for BedrockServer
impl Unpin for BedrockServer
impl UnwindSafe for BedrockServer
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