pub struct DownstreamData { /* private fields */ }
Expand description
Downstream data reference for a Stream filter
Trait Implementations§
Source§impl StreamControl for DownstreamData
impl StreamControl for DownstreamData
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 DownstreamData
impl StreamDataControl for DownstreamData
Source§const TYPE: StreamType = StreamType::Downstream
const TYPE: StreamType = StreamType::Downstream
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.
Auto Trait Implementations§
impl Freeze for DownstreamData
impl RefUnwindSafe for DownstreamData
impl Send for DownstreamData
impl Sync for DownstreamData
impl Unpin for DownstreamData
impl UnwindSafe for DownstreamData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more