Trait yttrium_key_base::Key[][src]

pub trait Key<Manager: DatabaseManager<DB>, DB: Database> {
    fn get_key_info(&self) -> &KeyInfo;
#[must_use] fn run_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        parameter: &'life1 [String],
        environment: &'life2 mut Environment<'life3, Manager, DB>
    ) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Trait used for implementing keys

Required methods

fn get_key_info(&self) -> &KeyInfo[src]

Returns a reference to a KeyInfo describing the key

#[must_use]fn run_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    parameter: &'life1 [String],
    environment: &'life2 mut Environment<'life3, Manager, DB>
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 
[src]

Runs the key functionality

Loading content...

Implementors

Loading content...