Skip to main content

vissue_control/
lib.rs

1//! JSON-RPC control wire: socket paths, framing, peer credentials, and types.
2//!
3//! This crate does not bind a socket. The owner lives in `vissue-serve`.
4
5pub mod frame;
6pub mod path;
7pub mod rpc;
8
9#[cfg(unix)]
10pub mod client;
11#[cfg(unix)]
12pub mod peercred;
13
14pub use frame::{
15    FrameError, Framing, MAX_HEADER_LINES, MAX_MESSAGE_BYTES, classify_first_line, is_header_line,
16    read_message, write_message,
17};
18pub use path::{
19    HUD_LOG_ENV, HUD_SOCKET_ENV, SERVE_LOG_ENV, SOCKET_ENV, beside_socket, control_log_path,
20    default_socket_path, hud_log_path, hud_socket_path, runtime_dir, socket_lock_path,
21    socket_pid_path,
22};
23pub use rpc::{
24    Error, Event, InitializeParams, InitializeResult, JsonRpcError, JsonRpcId, JsonRpcRequest,
25    JsonRpcResponse, Method, NOTIFY_ISSUE_SELECTED, NOTIFY_SHUTTING_DOWN, NOTIFY_VAULT_CHANGED,
26    Notification, PROTOCOL_VERSION, Request, Response, V1_CAPABILITIES, error_from_core,
27    invalid_params, invalid_request, method_not_found, parse_error, parse_initialize_params,
28};
29pub use vissue_core::views::*;