Expand description
Message passing infrastructure.
See repository for more info.
Re-exports§
pub use dnet_codecs as codecs;codecspub use dnet_utils as utils;utilspub use dnet_rpc as rpc;rpc
Modules§
- io
ioand non-WebAssembly - Communication over transports implementing Tokio’s AsyncRead and AsyncWrite traits.
- logging
logging - Logging utilities for
dnettransports. - quic
quicand non-WebAssembly - Transport for communication over Quinn QUIC implementation.
- tcp
tcpand non-WebAssembly - Transport for communication over Tokio TCP implementation.
- udp
udpand non-WebAssembly - Transport for communication over Tokio UDP implementation.
- websocket
websocket - Transport for communication over WebSocket.
Structs§
- Logger
logging - Logging utility for
dnettransports. - Message
Stream - Stream of messages.
- Recv
- Future returned by receive method.
Enums§
- Error
- Transport error.
Traits§
- Codec
- Trait for
dnetcodecs. - Decode
- Trait for decoders.
- Encode
- Trait for encoders.
- Logging
logging - Trait implemented by
dnettransports that support logging. - Messages
- Utility trait for creating message stream with filtered-out errors.
- Receive
- Convenience trait for receiving messages.
- Symmetric
Transport - Helper trait for transports where incoming and outgoing messages are of the same type.
- Transport
- Trait for transports implementing
dnetinterface.