Trait Endpoint

Source
pub trait Endpoint {
    // Required methods
    fn registrar(&self) -> &dyn Registrar;
    fn issuer(&mut self) -> &mut dyn Issuer;
    fn extension(&mut self) -> &mut dyn Extension;
}
Expand description

Required functionality to respond to client credentials requests.

Each method will only be invoked exactly once when processing a correct and authorized request, and potentially less than once when the request is faulty. These methods should be implemented by internally using primitives, as it is implemented in the frontend module.

Required Methods§

Source

fn registrar(&self) -> &dyn Registrar

Get the client corresponding to some id.

Source

fn issuer(&mut self) -> &mut dyn Issuer

Return the issuer instance to create the client credentials.

Source

fn extension(&mut self) -> &mut dyn Extension

The system of used extension, extending responses.

It is possible to use &mut ().

Implementors§