pub struct ResponsePlanInner<'req> { /* private fields */ }Implementations§
Source§impl<'req> ResponsePlanInner<'req>
impl<'req> ResponsePlanInner<'req>
pub fn with_capacity(status: StatusCode) -> Self
pub fn from_static(status: StatusCode, static_headers: &'static [u8]) -> Self
pub fn new(status: StatusCode) -> Self
pub fn ok() -> Self
pub fn not_found() -> Self
pub fn status(&self) -> StatusCode
pub fn wire_headers(&self) -> Shared
pub fn push_static( &mut self, name: &'static str, value: &'static str, ) -> &mut Self
pub fn push(&mut self, name: &'static str, value: &str) -> &mut Self
pub fn push_token_static( &mut self, name: HeaderNameToken, value: HeaderStaticValueToken, ) -> &mut Self
pub fn push_token(&mut self, name: HeaderNameToken, value: &str) -> &mut Self
pub fn push_local_token( &mut self, name: HeaderNameToken, value: LocalFrameBytesRef<'req>, ) -> &mut Self
pub fn respond_mono<B>(self, body: B) -> MonoResponseInner<'req>where
B: IntoBody<'req>,
pub fn respond_text<T>(self, body: T) -> MonoResponseInner<'req>where
T: TextSpec<'req>,
Trait Implementations§
Source§impl<'req> Clone for ResponsePlanInner<'req>
impl<'req> Clone for ResponsePlanInner<'req>
Source§fn clone(&self) -> ResponsePlanInner<'req>
fn clone(&self) -> ResponsePlanInner<'req>
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 moreAuto Trait Implementations§
impl<'req> !RefUnwindSafe for ResponsePlanInner<'req>
impl<'req> !Send for ResponsePlanInner<'req>
impl<'req> !Sync for ResponsePlanInner<'req>
impl<'req> !UnwindSafe for ResponsePlanInner<'req>
impl<'req> Freeze for ResponsePlanInner<'req>
impl<'req> Unpin for ResponsePlanInner<'req>
impl<'req> UnsafeUnpin for ResponsePlanInner<'req>
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