MCPcopy Create free account
hub / github.com/Vulae/pkmc / new

Method new

pkmc-server/src/client_handler.rs:92–104  ·  view source on GitHub ↗
(connection: Connection)

Source from the content-addressed store, hash-verified

90
91impl ClientHandler {
92 pub fn new(connection: Connection) -> Self {
93 Self {
94 connection,
95 state: ClientHandlerState::Handshake,
96 brand: None,
97 online: false,
98 compression: None,
99 status_description: None,
100 status_favicon: None,
101 registries: None,
102 tags: None,
103 }
104 }
105
106 pub fn with_brand(mut self, brand: impl Into<String>) -> Self {
107 self.brand = Some(brand.into());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected