Skip to main content

Crate weida_core

Crate weida_core 

Source
Expand description

I/O-free core model of the weida messaging framework.

This crate contains no networking, no tokio and no serialization: only the vocabulary types (endpoint addresses, limits, trace context, errors) that the wire codec and the transport share. Everything here is unit-testable without a socket.

The correlation and acknowledgement state machines that used to live here are gone: Req/Rep rides one bidirectional QUIC stream, so the stream is the correlation, and delivery is QUIC’s own transport receipt rather than an application-level ACK (docs/ARCHITECTURE.md, layer model).

Re-exports§

pub use addr::Address;
pub use addr::DEFAULT_PORT;
pub use addr::EndpointAddr;
pub use addr::InprocAddr;
pub use addr::MAX_BUS_BYTES;
pub use addr::MAX_PATH_BYTES;
pub use addr::MAX_PIPE_NAME_BYTES;
pub use addr::MAX_SOCKET_PATH_BYTES;
pub use addr::PIPE_NAMESPACE;
pub use addr::PipeAddr;
pub use addr::SCHEME;
pub use addr::SCHEME_INPROC;
pub use addr::SCHEME_PIPE;
pub use addr::SCHEME_UNIX;
pub use addr::UnixAddr;
pub use addr::validate_endpoint_path;
pub use error::Error;
pub use error::ErrorCode;
pub use error::LossCause;
pub use error::Result;
pub use error::StopReason;
pub use identity::Fingerprint;
pub use identity::LocalPrincipal;
pub use identity::PeerIdentity;
pub use identity::WindowsPrincipal;
pub use limits::Limits;
pub use trace::TraceContext;
pub use trace::TraceError;

Modules§

addr
Endpoint addressing: weida://[fingerprint@]host:port/path.
error
The single error type of the framework.
identity
Peer identity: the fingerprint of a certificate’s public key.
limits
Resource limits.
trace
W3C Trace Context propagation.