pub struct ResponsePassthrough { /* private fields */ }Expand description
Request-bound response metadata handle for Nest-style passthrough response decorators.
Implementations§
Source§impl ResponsePassthrough
impl ResponsePassthrough
pub fn new() -> Self
pub fn set_status(&self, status: u16) -> Result<()>
pub fn status(&self, status: u16) -> Result<Self>
pub fn set_header( &self, name: impl Into<String>, value: impl Into<String>, ) -> Result<()>
pub fn header( &self, name: impl Into<String>, value: impl Into<String>, ) -> Result<Self>
pub fn append_header( &self, name: impl Into<String>, value: impl Into<String>, ) -> Result<()>
pub fn has_changes(&self) -> Result<bool>
pub fn apply(&self, response: BootResponse) -> Result<BootResponse>
Trait Implementations§
Source§impl Clone for ResponsePassthrough
impl Clone for ResponsePassthrough
Source§fn clone(&self) -> ResponsePassthrough
fn clone(&self) -> ResponsePassthrough
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponsePassthrough
impl Debug for ResponsePassthrough
Source§impl Default for ResponsePassthrough
impl Default for ResponsePassthrough
Source§fn default() -> ResponsePassthrough
fn default() -> ResponsePassthrough
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResponsePassthrough
impl RefUnwindSafe for ResponsePassthrough
impl Send for ResponsePassthrough
impl Sync for ResponsePassthrough
impl Unpin for ResponsePassthrough
impl UnsafeUnpin for ResponsePassthrough
impl UnwindSafe for ResponsePassthrough
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