generic-session-types 0.1.1

Generic session types in Rust for async send recv channel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub trait Repr<T>
where
    Self: Sized,
{
    /// Convert a raw type to the common representation.
    fn from(v: T) -> Self;
    /// Try to convert the representation back into one of the raw message types.
    fn try_into(self) -> Result<T, Self>;
    /// Check whether the representation can be turned into this raw type, without consuming.
    fn can_into(&self) -> bool;
}

mod json_string_repr;
pub use json_string_repr::*;
mod box_any_repr;
pub use box_any_repr::*;