Skip to main content

Crate repe

Crate repe 

Source
Expand description

REPE (Remote Efficient Protocol Extension) - Rust implementation

Supports JSON, UTF-8, raw binary, and BEVE body formats. Spec reference: https://github.com/beve-org/beve

Re-exports§

pub use async_client::AsyncClient;
pub use async_fleet::AsyncFleet;
pub use async_server::AsyncServer;
pub use client::Client;
pub use constants::BodyFormat;
pub use constants::ErrorCode;
pub use constants::HEADER_SIZE;
pub use constants::QueryFormat;
pub use constants::REPE_SPEC;
pub use constants::REPE_VERSION;
pub use error::RepeError;
pub use fleet::ConnectSummary;
pub use fleet::DisconnectSummary;
pub use fleet::Fleet;
pub use fleet::FleetError;
pub use fleet::FleetOptions;
pub use fleet::HealthStatus;
pub use fleet::Node;
pub use fleet::NodeConfig;
pub use fleet::ReconnectSummary;
pub use fleet::RemoteResult;
pub use fleet::RetryPolicy;
pub use header::Header;
pub use io::read_message;
pub use io::read_message_into;
pub use io::write_message;
pub use io::write_message_complex_slice;
pub use io::write_message_streaming;
pub use io::write_message_typed_slice;
pub use json_pointer::evaluate as eval_json_pointer;
pub use json_pointer::parse as parse_json_pointer;
pub use message::Message;
pub use message::MessageView;
pub use peer::CallContext;
pub use peer::NotifyBody;
pub use peer::PeerHandle;
pub use peer::PeerId;
pub use peer::PeerRegistry;
pub use peer::PeerSendError;
pub use peer::PeerSink;
pub use registry::Registry;
pub use registry::RegistryCallable;
pub use registry::RegistryError;
pub use registry::WithContext;
pub use server::Server;
pub use server::Execution;
pub use server::IntoTypedResponse;
pub use server::JsonTypedHandler;
pub use server::LockError;
pub use server::Lockable;
pub use server::Middleware;
pub use server::Next;
pub use server::Router;
pub use server::TypedResponse;
pub use stream::CreditError;
pub use stream::DEFAULT_BACKPRESSURE_TIMEOUT;
pub use stream::DEFAULT_IDLE_TIMEOUT;
pub use stream::DEFAULT_RECONNECT_TIMEOUT;
pub use stream::DEFAULT_REPLAY_RING_BYTES;
pub use stream::DEFAULT_WINDOW_BYTES;
pub use stream::PendingResume;
pub use stream::ReconnectOutcome;
pub use stream::ResumeRejection;
pub use stream::RingChunk;
pub use stream::TransferControl;
pub use stream::TransferRegistry;
pub use stream::spawn_watchdog;
pub use structs::RepeStruct;
pub use structs::StructError;
pub use udp_client::UniUdpClient;
pub use uniudp_fleet::SendResult;
pub use uniudp_fleet::UniUdpFleet;
pub use uniudp_fleet::UniUdpNode;
pub use uniudp_fleet::UniUdpNodeConfig;
pub use value_stream::AsyncSvsClient;
pub use value_stream::Compression;
pub use value_stream::RouterValueStreamExt;
pub use value_stream::StreamOpts;
pub use value_stream::StreamOutput;
pub use value_stream::pull_complex_slice;
pub use value_stream::pull_complex_slice_async;
pub use value_stream::pull_consume_async;
pub use value_stream::pull_stream;
pub use value_stream::pull_to_beve_file;
pub use value_stream::pull_to_beve_zst_file;
pub use value_stream::pull_to_file;
pub use value_stream::pull_to_file_async;
pub use value_stream::pull_to_file_verified_async;
pub use value_stream::pull_typed_slice;
pub use value_stream::pull_typed_slice_async;
pub use value_stream::pull_value;
pub use value_stream::pull_value_async;
pub use websocket_client::AlreadySubscribed;
pub use websocket_client::WebSocketClient;
pub use websocket_server::ConnectionError;
pub use websocket_server::HandshakeContext;
pub use websocket_server::SharedWebSocketServer;
pub use websocket_server::ShutdownToken;
pub use websocket_server::WebSocketServer;
pub use websocket_server::is_websocket_upgrade;
pub use websocket_server::proxy_connection;

Modules§

async_client
async_fleet
async_io
async_server
client
constants
Protocol constants and enums derived from the REPE spec.
error
fleet
header
io
json_pointer
message
peer
Peer-aware handler routing.
registry
server
stream
Backpressure-controlled streaming over REPE notifies.
structs
udp_client
uniudp_fleet
value_stream
Streaming transfer of a serialized, optionally zstd-compressed in-memory value over ordinary REPE request/response — the Serialized Value Stream (SVS) wire contract.
websocket_client
websocket_server

Structs§

Complex
Re-exported from beve for the typed-numeric body fast path: the element trait bound for MessageBuilder::body_typed_slice / Message::decode_typed_slice and the complex element type. Lets callers use the numeric body API without naming beve directly.

Traits§

BeveTypedSlice
Re-exported from beve for the typed-numeric body fast path: the element trait bound for MessageBuilder::body_typed_slice / Message::decode_typed_slice and the complex element type. Lets callers use the numeric body API without naming beve directly.

Derive Macros§

RepeStruct
Derive macro to generate structs::RepeStruct implementations.