Crate craftio_rs

Source

Structs§

CraftConnection
CraftReader
Wraps some stream of type R, and implements either CraftSyncReader or CraftAsyncReader (or both) based on what types R implements.
CraftWriter
Wraps some stream of type W, and implements either CraftSyncWriter or CraftAsyncWriter (or both) based on what types W implements.

Enums§

CipherError
DecompressErr
PacketSerializeFail
ReadError
WriteError

Constants§

BUF_SIZE
DEAFULT_MAX_PACKET_SIZE

Traits§

AsyncReadExact
AsyncWriteAll
CraftAsyncReader
CraftAsyncWriter
This trait is the interface by which you can write packets to some underlying AsyncWrite stream
CraftIo
Trait for stateful connection types, such as the CraftReader<R> or CraftWriter<W> or combo type CraftConnection<R, W>.
CraftSyncReader
CraftSyncWriter
This trait is the interface by which you can write packets to some underlying implementor of std::io::Write.
CraftWrapper
Indicates that a type provided by this crate is wrapping some inner value of type I, which can be unwrapped by calling the into_inner function.

Type Aliases§

CraftTcpConnection
CraftTokioConnection
CraftUnbufferedTokioConnection
ReadResult
WriteResult