pub struct ResponseBytes<'a> { /* private fields */ }Expand description
Original successful response payload and its producing reader. Keeping the envelope separate avoids allocating a large basic response for protocol failures or unsupported types; decoding moves the existing reader.
Implementations§
Source§impl<'a> ResponseBytes<'a>
impl<'a> ResponseBytes<'a>
Sourcepub fn into_basic(self, execution: &Memory) -> Result<Option<BasicResponse<'a>>>
pub fn into_basic(self, execution: &Memory) -> Result<Option<BasicResponse<'a>>>
Decode the mandatory basic response syntax using current execution.
None means unsupported syntax. The producing reader’s cumulative
work/depth limits remain active; no extra parser or reader copy is made.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for ResponseBytes<'a>
impl<'a> !RefUnwindSafe for ResponseBytes<'a>
impl<'a> !Send for ResponseBytes<'a>
impl<'a> !Sync for ResponseBytes<'a>
impl<'a> !UnwindSafe for ResponseBytes<'a>
impl<'a> Unpin for ResponseBytes<'a>
impl<'a> UnsafeUnpin for ResponseBytes<'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