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    classify_first_line, is_header_line, read_message, write_message, FrameError, Framing,
16    MAX_HEADER_LINES, MAX_MESSAGE_BYTES,
17};
18pub use path::{
19    beside_socket, control_log_path, default_socket_path, hud_log_path, hud_socket_path,
20    runtime_dir, socket_lock_path, socket_pid_path, HUD_LOG_ENV, HUD_SOCKET_ENV, SERVE_LOG_ENV,
21    SOCKET_ENV,
22};
23pub use rpc::{
24    error_from_core, invalid_params, invalid_request, method_not_found, parse_error,
25    parse_initialize_params, Error, Event, InitializeParams, InitializeResult, JsonRpcError,
26    JsonRpcId, JsonRpcRequest, JsonRpcResponse, Method, Notification, Request, Response,
27    NOTIFY_ISSUE_SELECTED, NOTIFY_SHUTTING_DOWN, NOTIFY_VAULT_CHANGED, PROTOCOL_VERSION,
28    V1_CAPABILITIES,
29};
30pub use vissue_core::views::*;