Skip to main content

Stack

Trait Stack 

Source
pub trait Stack: Sized {
    // Required method
    fn run(me: &mut Layer<Self>);

    // Provided methods
    fn name(&self) -> Cow<'static, str> { ... }
    fn setup(me: &mut Layer<Self>) { ... }
    fn initialize(me: &mut Layer<Self>) { ... }
    fn stack<T: Stack>(self, layer: &Layer<T>) -> Layer<Self> { ... }
}

Required Methods§

Source

fn run(me: &mut Layer<Self>)

Provided Methods§

Source

fn name(&self) -> Cow<'static, str>

Source

fn setup(me: &mut Layer<Self>)

Source

fn initialize(me: &mut Layer<Self>)

Source

fn stack<T: Stack>(self, layer: &Layer<T>) -> Layer<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Stack for Bucket<'_>

Source§

impl Stack for Instance<'_>

Source§

impl Stack for Vpc<'_>