pub struct Response<'field, B = [u8; 0], T = (), S = Code, N = Name<Cow<'field, str>>> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'field, 'req, 'd, Ranges: Copy + 'd, D, B> Emit<'req, 'd, D, Ranges> for Response<'field, B, (), Code>where
B: Body<'d, Ranges>,
impl<'field, 'req, 'd, Ranges: Copy + 'd, D, B> Emit<'req, 'd, D, Ranges> for Response<'field, B, (), Code>where
B: Body<'d, Ranges>,
const BODY: Kind = payload::Kind::Inline
type Kind = Sync
type Stream = Never
type Bound = Unbounded
fn consume<W: Transaction<'req, 'd, Never, Ranges>>(self, writer: W) -> W::Done
const DECLARED: Option<Head<Self>> = None
fn into_exact(self) -> Result<impl Reply, Self>
Auto Trait Implementations§
impl<'field, B, T, S, N> Forget for Response<'field, B, T, S, N>
impl<'field, B, T, S, N> Freeze for Response<'field, B, T, S, N>
impl<'field, B, T, S, N> Move for Response<'field, B, T, S, N>
impl<'field, B, T, S, N> RefUnwindSafe for Response<'field, B, T, S, N>where
S: RefUnwindSafe,
N: RefUnwindSafe,
Vec<u8>: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<'field, B, T, S, N> Send for Response<'field, B, T, S, N>
impl<'field, B, T, S, N> Sync for Response<'field, B, T, S, N>
impl<'field, B, T, S, N> Unpin for Response<'field, B, T, S, N>
impl<'field, B, T, S, N> UnsafeUnpin for Response<'field, B, T, S, N>where
S: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(N, Value<Cow<'field, [u8]>>)>: UnsafeUnpin,
T: UnsafeUnpin,
B: UnsafeUnpin,
impl<'field, B, T, S, N> UnwindSafe for Response<'field, B, T, S, N>where
S: UnwindSafe,
RawVecInner: UnwindSafe,
N: UnwindSafe,
&'field [u8]: UnwindSafe,
Vec<u8>: UnwindSafe,
T: UnwindSafe,
B: UnwindSafe,
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