pub struct UpstreamData { /* private fields */ }Expand description
Upstream data reference for a Stream filter
Trait Implementations§
Source§impl StreamControl for UpstreamData
impl StreamControl for UpstreamData
Source§fn attributes(&self) -> &Attributes
fn attributes(&self) -> &Attributes
Retrieve attributes for the stream data
Source§fn resume_downstream(&self)
fn resume_downstream(&self)
TODO: UNKNOWN PURPOSE
Source§fn close_downstream(&self)
fn close_downstream(&self)
TODO: UNKNOWN PURPOSE
Source§fn resume_upstream(&self)
fn resume_upstream(&self)
TODO: UNKNOWN PURPOSE
Source§fn close_upstream(&self)
fn close_upstream(&self)
TODO: UNKNOWN PURPOSE
Source§impl StreamDataControl for UpstreamData
impl StreamDataControl for UpstreamData
Source§const TYPE: StreamType = StreamType::Upstream
const TYPE: StreamType = StreamType::Upstream
Upstream or Downstream
Source§fn end_of_stream(&self) -> bool
fn end_of_stream(&self) -> bool
If true, this will be the last downstream data for this context.
Source§fn set(&self, range: impl RangeBounds<usize>, value: &[u8])
fn set(&self, range: impl RangeBounds<usize>, value: &[u8])
Replace a range of data with
value.Source§fn write_upstream(&self, data: &[u8])
fn write_upstream(&self, data: &[u8])
Writes data directly upstream, should be called from downstream context.
Source§fn write_downstream(&self, data: &[u8])
fn write_downstream(&self, data: &[u8])
Writes data directly downstream, should be called from upstream context.