Skip to main content

Module connection

Module connection 

Source
Expand description

This module contains the PlayerConnection trait that abstracts network connections. This module contains the PlayerConnection trait that abstracts network connections.

The trait is object-safe to allow using dyn PlayerConnection for both real network connections (JavaConnection) and test connections (FlintConnection).

Modules§

java 🔒
This module contains the JavaConnection struct, which is used to represent a connection to a Java client.

Structs§

BundleBuilder
Builder for creating packet bundles.
ClientInformation
Client-side settings sent via SClientInformation packet. This is stored separately from the packet struct to allow default initialization.
JavaConnection
A connection to a Java client.

Enums§

OutboundPacket
Outbound packet queue message for Java connections.
PlayerConnection
Concrete player connection type using enum_dispatch for zero-cost dispatch.

Traits§

NetworkConnection
An object-safe trait for player connections.

Type Aliases§

JavaNetworkWriter
Shared Java socket writer.