1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use crate::internal::base::protocol::Protocol;

pub trait RecApp<A>: Sized
{
  type Applied: Send;
}

pub trait HasRecApp<F, C>: Send
{
  fn get_applied(self: Box<Self>) -> Box<F::Applied>
  where
    F: RecApp<C>;
}

pub trait SharedRecApp<X>
{
  type Applied;
}

pub trait HasRecEndpoint<F, C>: Send + 'static
{
  fn get_applied(
    self: Box<Self>
  ) -> Box<<F::Applied as Protocol>::ClientEndpoint>
  where
    F: RecApp<C>,
    F::Applied: Protocol;
}