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