Trait Registrar

Source
pub trait Registrar {
    // Required methods
    fn bound_redirect<'a, 'life0, 'async_trait>(
        &'life0 self,
        bound: ClientUrl<'a>,
    ) -> Pin<Box<dyn Future<Output = Result<BoundClient<'a>, RegistrarError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn negotiate<'a, 'life0, 'async_trait>(
        &'life0 self,
        client: BoundClient<'a>,
        scope: Option<Scope>,
    ) -> Pin<Box<dyn Future<Output = Result<PreGrant, RegistrarError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn check<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        client_id: &'life1 str,
        passphrase: Option<&'life2 [u8]>,
    ) -> Pin<Box<dyn Future<Output = Result<(), RegistrarError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn bound_redirect<'a, 'life0, 'async_trait>( &'life0 self, bound: ClientUrl<'a>, ) -> Pin<Box<dyn Future<Output = Result<BoundClient<'a>, RegistrarError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Source

fn negotiate<'a, 'life0, 'async_trait>( &'life0 self, client: BoundClient<'a>, scope: Option<Scope>, ) -> Pin<Box<dyn Future<Output = Result<PreGrant, RegistrarError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Source

fn check<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, client_id: &'life1 str, passphrase: Option<&'life2 [u8]>, ) -> Pin<Box<dyn Future<Output = Result<(), RegistrarError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

Source§

impl<T> Registrar for T
where T: Registrar + Send + Sync + ?Sized,