pub struct ResponseStream { /* private fields */ }Implementations§
Source§impl ResponseStream
impl ResponseStream
pub fn status(&self) -> StatusCode
Sourcepub fn headers(&self) -> &HeaderMap
pub fn headers(&self) -> &HeaderMap
Explicit access to response headers; values are marked sensitive for formatting.
Sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Allowlisted correlation metadata retained through all body and parser errors.
pub fn bytes_consumed(&self) -> usize
pub fn close(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ResponseStream
impl !Sync for ResponseStream
impl !UnwindSafe for ResponseStream
impl Freeze for ResponseStream
impl Send for ResponseStream
impl Unpin for ResponseStream
impl UnsafeUnpin for ResponseStream
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