StreamContext

Trait StreamContext 

Source
pub trait StreamContext: Context {
    // 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<ByteString> { ... }
    fn set_downstream_data(&self, start: usize, size: usize, value: &[u8]) { ... }
    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<ByteString> { ... }
    fn set_upstream_data(&self, start: usize, size: usize, value: &[u8]) { ... }
    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<ByteString>

Source

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

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<ByteString>

Source

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

Source

fn on_upstream_close(&mut self, _peer_type: PeerType)

Source

fn on_log(&mut self)

Implementors§