falcorn-sdk 0.1.0

Falcorn SDK for interacting with the server IPC and plugins.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("io error: {0}")]
    Io(#[from] std::io::Error),
    #[error("serialize error: {0}")]
    Serialize(#[from] Box<bincode::ErrorKind>),
    #[error("protocol error: {0}")]
    Protocol(String),
    #[error("remote error: {code} - {message}")]
    Remote { code: String, message: String },
}

pub type Result<T> = std::result::Result<T, Error>;