Skip to main content

ProtectedEndpoint

Trait ProtectedEndpoint 

Source
pub trait ProtectedEndpoint {
    type Auth;
    type Inner: BindableEndpoint;
}
Expand description

Bind a handler to a Protected<Auth, E> endpoint.

The handler’s first argument MUST be Auth. This is enforced by the AuthHandler<Auth, Args> trait — the compiler rejects handlers that don’t take Auth as their first argument. Trait to extract binding info from the inner endpoint of a Protected type.

Required Associated Types§

Implementors§

Source§

impl<Auth, E: BindableEndpoint> ProtectedEndpoint for Protected<Auth, E>

Source§

type Auth = Auth

Source§

type Inner = E