Crate daemon_engine
source ·Re-exports
pub use server::Server;pub use connection::Connection;pub use tcp::TcpServer;pub use tcp::TcpInfo;pub use tcp::TcpConnection;pub use udp::UdpConnection;pub use udp::UdpInfo;pub use unix::UnixServer;pub use unix::UnixInfo;pub use unix::UnixConnection;pub use error::Error as DaemonError;Modules
Codecs implement protocol handling over connectors
Connection provides a generic connection over a stream and codec
This is used to implement clients (ie. for a command line utility)
Error implements errors returned by the daemon
Server provides a generic server over a stream and codec
This is used to implement daemon servers (ie. long running processes w/ network communication)
TCP implements a TCP socket server and connection
UDP implements a UDP socket connection
As UDP is connection-less, no server is required
Unix implements a Unix socket server and connection
Type Definitions
JsonCodec re-exports the JSON codec for convenience
This is an alias of JsonCodec with default JsonError, use codecs::json::JsonCodec to specify error type manually