[][src]Trait meows::DefaultEndpoint

pub trait DefaultEndpoint<ServerState, ClientState>: Send + Sync + 'static {
    fn call<'a>(
        &'a self,
        msg: String,
        state: Arc<ServerState>
    ) -> BoxFuture<'a, Option<Message>>; }

Required methods

fn call<'a>(
    &'a self,
    msg: String,
    state: Arc<ServerState>
) -> BoxFuture<'a, Option<Message>>

Invoke the endpoint within the given context

Loading content...

Implementors

impl<ServerState, ClientState, F: Send + Sync + 'static, Fut> DefaultEndpoint<ServerState, ClientState> for F where
    F: Fn(String, Arc<ServerState>) -> Fut,
    Fut: Future<Output = Option<Message>> + Send + 'static, 
[src]

Loading content...