pub struct IncomingResponse<Registry: PollableRegistry> { /* private fields */ }Implementations§
Source§impl<Registry> IncomingResponse<Registry>where
Registry: PollableRegistry,
impl<Registry> IncomingResponse<Registry>where
Registry: PollableRegistry,
pub fn new( response: IncomingResponse, registry: Registry, ) -> Result<Self, Error>
pub fn status(&self) -> u16
pub fn headers(&self) -> FieldEntries
pub fn body(&mut self) -> &mut IncomingBody<Registry>
pub fn into_body(self) -> IncomingBody<Registry>
Auto Trait Implementations§
impl<Registry> !Freeze for IncomingResponse<Registry>
impl<Registry> RefUnwindSafe for IncomingResponse<Registry>
impl<Registry> Send for IncomingResponse<Registry>
impl<Registry> Sync for IncomingResponse<Registry>
impl<Registry> Unpin for IncomingResponse<Registry>
impl<Registry> UnsafeUnpin for IncomingResponse<Registry>
impl<Registry> UnwindSafe for IncomingResponse<Registry>
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