Skip to main content

workflow_rpc/
result.rs

1//!
2//! Result enum encapsulating [`super::error::Error`]
3//! enum common to client and server
4//!
5
6/// Result type returning the crate's general-purpose [`Error`](super::error::Error).
7pub type Result<T> = std::result::Result<T, super::error::Error>;
8
9// use super::messages::borsh::ServerError;
10/// Result type returning a [`ServerError`](super::error::ServerError), used for
11/// errors that originate on and are reported by the RPC server.
12pub type ServerResult<T> = std::result::Result<T, super::error::ServerError>;