[][src]Trait meows::Endpoint

pub trait Endpoint<ServerState, ClientState>: Send + Sync + 'static {
    fn call<'a>(
        &'a self,
        req: Request<ServerState, ClientState>
    ) -> BoxFuture<'a, Option<Message>>; }

Endpoint comes from tide, and I'm still not sure how this magic works

Required methods

fn call<'a>(
    &'a self,
    req: Request<ServerState, ClientState>
) -> BoxFuture<'a, Option<Message>>

Invoke the endpoint within the given context

Loading content...

Implementors

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

Loading content...