[][src]Trait proxy_wasm::traits::StreamContext

pub trait StreamContext: Context {
    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 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 on_upstream_close(&mut self, _peer_type: PeerType) { ... }
fn on_log(&mut self) { ... } }

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 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 on_upstream_close(&mut self, _peer_type: PeerType)

fn on_log(&mut self)

Loading content...

Implementors

Loading content...