Struct ptth_core::http_serde::Response[][src]

pub struct Response {
    pub parts: ResponseParts,
    pub body: Option<Receiver<Result<Vec<u8>, Infallible>>>,
    pub content_length: Option<u64>,
}

Fields

parts: ResponsePartsbody: Option<Receiver<Result<Vec<u8>, Infallible>>>content_length: Option<u64>

Implementations

impl Response[src]

pub fn status_code(&mut self, c: StatusCode) -> &mut Self[src]

pub fn header(&mut self, k: String, v: Vec<u8>) -> &mut Self[src]

pub fn body(&mut self, b: Receiver<Result<Vec<u8>, Infallible>>) -> &mut Self[src]

pub fn body_bytes(&mut self, b: Vec<u8>) -> &mut Self[src]

Trait Implementations

impl Default for Response[src]

Auto Trait Implementations

impl !RefUnwindSafe for Response

impl Send for Response

impl Sync for Response

impl Unpin for Response

impl !UnwindSafe for Response

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,