Skip to main content

bind_strict

Function bind_strict 

Source
pub fn bind_strict<S, H, Args>(handler: H) -> BoundHandler<S>
where S: StrictEndpoint, H: StrictHandler<<S::Inner as HasResType>::Res, Args>, Args: 'static,
Expand description

Bind a handler to a Strict<E> endpoint.

The handler’s return type must exactly match E::Res.