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) { ... }
}