[−][src]Trait meows::DefaultEndpoint
Required methods
fn call<'a>(
&'a self,
msg: String,
state: Arc<ServerState>
) -> BoxFuture<'a, Option<Message>>
&'a self,
msg: String,
state: Arc<ServerState>
) -> BoxFuture<'a, Option<Message>>
Invoke the endpoint within the given context
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]
F: Fn(String, Arc<ServerState>) -> Fut,
Fut: Future<Output = Option<Message>> + Send + 'static,