Trait proxy_wasm::traits::StreamContext

source ·
pub trait StreamContext: Context {
Show 14 methods // Provided methods fn on_new_connection(&mut self) -> Action { ... } fn on_downstream_data( &mut self, _data_size: usize, _end_of_stream: bool, ) -> Action { ... } fn get_downstream_data( &self, start: usize, max_size: usize, ) -> Option<Bytes> { ... } fn set_downstream_data(&self, start: usize, size: usize, value: &[u8]) { ... } fn resume_downstream(&self) { ... } fn close_downstream(&self) { ... } fn on_downstream_close(&mut self, _peer_type: PeerType) { ... } fn on_upstream_data( &mut self, _data_size: usize, _end_of_stream: bool, ) -> Action { ... } fn get_upstream_data(&self, start: usize, max_size: usize) -> Option<Bytes> { ... } fn set_upstream_data(&self, start: usize, size: usize, value: &[u8]) { ... } fn resume_upstream(&self) { ... } fn close_upstream(&self) { ... } fn on_upstream_close(&mut self, _peer_type: PeerType) { ... } fn on_log(&mut self) { ... }
}

Provided Methods§

source

fn on_new_connection(&mut self) -> Action

source

fn on_downstream_data( &mut self, _data_size: usize, _end_of_stream: bool, ) -> Action

source

fn get_downstream_data(&self, start: usize, max_size: usize) -> Option<Bytes>

source

fn set_downstream_data(&self, start: usize, size: usize, value: &[u8])

source

fn resume_downstream(&self)

source

fn close_downstream(&self)

source

fn on_downstream_close(&mut self, _peer_type: PeerType)

source

fn on_upstream_data( &mut self, _data_size: usize, _end_of_stream: bool, ) -> Action

source

fn get_upstream_data(&self, start: usize, max_size: usize) -> Option<Bytes>

source

fn set_upstream_data(&self, start: usize, size: usize, value: &[u8])

source

fn resume_upstream(&self)

source

fn close_upstream(&self)

source

fn on_upstream_close(&mut self, _peer_type: PeerType)

source

fn on_log(&mut self)

Implementors§