pub trait Endpoint: Send + Sync {
type Output: IntoResponse;
// Required method
fn call(&self, req: Request) -> Result<Self::Output, ChannelError>;
// Provided method
fn get_response(&self, req: Request) -> Response { ... }
}Required Associated Types§
Sourcetype Output: IntoResponse
type Output: IntoResponse
Represents the response of the endpoint.