[go: up one dir, main page]

endpoint

Function endpoint 

Source
pub fn endpoint<F, Fut, State>(handler: F) -> SseEndpoint<F, Fut, State>
where State: Clone + Send + Sync + 'static, F: Fn(Request<State>, Sender) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<()>> + Send + 'static,
Expand description

Create an endpoint that can handle SSE connections.