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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".