Module prelude

Module prelude 

Source
Expand description

§JSON-RPC Server Prelude

This module provides convenient re-exports of the most commonly used types from the JSON-RPC server library.

use turul_mcp_json_rpc_server::prelude::*;

Re-exports§

pub use crate::error::JsonRpcError;
pub use crate::error::JsonRpcErrorCode;
pub use crate::notification::JsonRpcNotification;
pub use crate::request::JsonRpcRequest;
pub use crate::request::RequestParams;
pub use crate::response::JsonRpcMessage;
pub use crate::response::JsonRpcResponse;
pub use crate::response::ResponseResult;
pub use crate::types::JsonRpcVersion;
pub use crate::types::RequestId;
pub use crate::async::JsonRpcDispatcher;
pub use crate::async::JsonRpcHandler;
pub use crate::async::SessionContext;
pub use crate::error_codes::*;