[][src]Trait envoy_sdk::extension::factory::ExtensionFactory

pub trait ExtensionFactory {
    type Extension;

    const NAME: &'static str;

    fn new_extension(
        &mut self,
        _instance_id: InstanceId
    ) -> Result<Self::Extension>; fn on_configure(
        &mut self,
        _configuration_size: usize,
        _ops: &dyn ConfigureOps
    ) -> Result<ConfigStatus> { ... }
fn on_drain(&mut self) -> Result<DrainStatus> { ... } }

An interface of the Envoy extension Factory.

Associated Types

Loading content...

Associated Constants

const NAME: &'static str

Name the extension should be referred to in Envoy configuration.

Loading content...

Required methods

fn new_extension(&mut self, _instance_id: InstanceId) -> Result<Self::Extension>

Loading content...

Provided methods

fn on_configure(
    &mut self,
    _configuration_size: usize,
    _ops: &dyn ConfigureOps
) -> Result<ConfigStatus>

fn on_drain(&mut self) -> Result<DrainStatus>

Loading content...

Implementors

Loading content...