pub struct ResponseSettings { /* private fields */ }
Implementations§
Source§impl ResponseSettings
impl ResponseSettings
pub fn headers_mut(&mut self) -> &mut HeaderValues
pub fn status(&mut self, status: StatusCode) -> &mut Self
Trait Implementations§
Source§impl Clone for ResponseSettings
impl Clone for ResponseSettings
Source§fn clone(&self) -> ResponseSettings
fn clone(&self) -> ResponseSettings
Returns a copy of the value. Read more
1.0.0 · 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 ResponseSettings
impl Debug for ResponseSettings
Source§impl<'a, R> Extractor<'a, R> for &'a mut ResponseSettings
impl<'a, R> Extractor<'a, R> for &'a mut ResponseSettings
type Error = Infallible
type Prepared = ()
fn validate(validate: Validate<'_>)
fn prepare( _prepare: Prepare<'_>, ) -> Pin<Box<dyn Future<Output = Result<Self::Prepared, Self::Error>> + Send + '_>>
fn extract(
extract: Extract<'a, '_, Self::Prepared, R>,
) -> Result<Self, Self::Error>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for ResponseSettings
impl RefUnwindSafe for ResponseSettings
impl Send for ResponseSettings
impl Sync for ResponseSettings
impl Unpin for ResponseSettings
impl UnwindSafe for ResponseSettings
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