Skip to main content

Crate libgrite_ipc

Crate libgrite_ipc 

Source
Expand description

IPC types and client for grite daemon communication

This crate provides:

  • Message types for daemon communication (IpcRequest, IpcResponse, IpcCommand)
  • Notification types for pub/sub (EventApplied, WalSynced, etc.)
  • Daemon lock management (DaemonLock)
  • IPC client for connecting to the daemon

Re-exports§

pub use client::IpcClient;
pub use error::IpcError;
pub use lock::DaemonLock;
pub use messages::IpcCommand;
pub use messages::IpcErrorPayload;
pub use messages::IpcRequest;
pub use messages::IpcResponse;
pub use notifications::Notification;

Modules§

client
IPC client for connecting to the daemon
error
IPC error types
framing
Length-prefixed message framing for Unix socket IPC
issue_action
Issue action types returned in daemon responses
lock
Daemon lock management
messages
IPC request and response message types
notifications
Notification types for pub/sub

Constants§

DEFAULT_LEASE_MS
Default lease duration for daemon locks in milliseconds
DEFAULT_TIMEOUT_MS
Default request timeout in milliseconds
IPC_SCHEMA_VERSION
Current IPC schema version

Functions§

default_socket_path
Get the default Unix socket path for the daemon.