Interface PacketReading.Result<T>
- All Known Implementing Classes:
PacketReading.Result.Empty
,PacketReading.Result.Failure
,PacketReading.Result.Success
- Enclosing class:
PacketReading
public static sealed interface PacketReading.Result<T>
permits PacketReading.Result.Success<T>, PacketReading.Result.Empty<T>, PacketReading.Result.Failure<T>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
Represents no packet to read.static final record
Represents a failure to read a packet due to insufficient buffer capacity.static final record
At least one packet was read.