pub struct StreamIncomingDataReply<'a> {
pub handled: bool,
pub have_more_data: bool,
pub data: Option<&'a [u8]>,
}Expand description
Return value to Stream::handle_incoming_data.
Fields§
§handled: boolSome of the data was handled
have_more_data: boolData was received in addition to any in the data field that could be retrieved with
Stream::poll_recv.
data: Option<&'a [u8]>Any application data that could be parsed from the incoming data.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StreamIncomingDataReply<'a>
impl<'a> RefUnwindSafe for StreamIncomingDataReply<'a>
impl<'a> Send for StreamIncomingDataReply<'a>
impl<'a> Sync for StreamIncomingDataReply<'a>
impl<'a> Unpin for StreamIncomingDataReply<'a>
impl<'a> UnwindSafe for StreamIncomingDataReply<'a>
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