tros 0.6.0

Your tros from tarantool TX thread to tokio(..and others!)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
pub enum Error {
    #[error("failed to receive function result from the executor: {}", .0)]
    ResultReceiveFailed(&'static str),
    #[error("failed to send function result from within the runtime: {}", .0)]
    ResultSendFailed(&'static str),
}

impl Error {
    pub fn sender_disconnected() -> Self {
        Self::ResultReceiveFailed("sender part has disconnected")
    }
}

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