Trait proxy_wasm::traits::RootContext

source ·
pub trait RootContext: Context {
    // Provided methods
    fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool { ... }
    fn get_vm_configuration(&self) -> Option<Bytes> { ... }
    fn on_configure(&mut self, _plugin_configuration_size: usize) -> bool { ... }
    fn get_plugin_configuration(&self) -> Option<Bytes> { ... }
    fn set_tick_period(&self, period: Duration) { ... }
    fn on_tick(&mut self) { ... }
    fn on_queue_ready(&mut self, _queue_id: u32) { ... }
    fn on_log(&mut self) { ... }
    fn create_http_context(
        &self,
        _context_id: u32,
    ) -> Option<Box<dyn HttpContext>> { ... }
    fn create_stream_context(
        &self,
        _context_id: u32,
    ) -> Option<Box<dyn StreamContext>> { ... }
    fn get_type(&self) -> Option<ContextType> { ... }
}

Provided Methods§

source

fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool

source

fn get_vm_configuration(&self) -> Option<Bytes>

source

fn on_configure(&mut self, _plugin_configuration_size: usize) -> bool

source

fn get_plugin_configuration(&self) -> Option<Bytes>

source

fn set_tick_period(&self, period: Duration)

source

fn on_tick(&mut self)

source

fn on_queue_ready(&mut self, _queue_id: u32)

source

fn on_log(&mut self)

source

fn create_http_context(&self, _context_id: u32) -> Option<Box<dyn HttpContext>>

source

fn create_stream_context( &self, _context_id: u32, ) -> Option<Box<dyn StreamContext>>

source

fn get_type(&self) -> Option<ContextType>

Implementors§