Scale

Trait Scale 

Source
pub trait Scale {
    type Resource;

    // Required method
    fn replicas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
        replicas: i32,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Resource, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn replicas<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, replicas: i32, ) -> Pin<Box<dyn Future<Output = Result<Self::Resource, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl<S> Scale for Api<S>

Source§

type Resource = S

Source§

fn replicas<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, replicas: i32, ) -> Pin<Box<dyn Future<Output = Result<Self::Resource, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§