[]Struct sipua::response::Response

pub struct Response<'a> {
    pub sl: StatusLine<'a>,
    pub headers: Vec<Header<'a>>,
    pub body: Option<&'a [u8]>,
}

Fields

sl: StatusLine<'a>

Status line. Ex: SIP/2.0 401 Unauthorized

headers: Vec<Header<'a>>

The response headers.

body: Option<&'a [u8]>

Body

Methods

impl<'a> Response<'a>

pub fn parse(
    buf_input: &'a [u8]
) -> Result<(&'a [u8], Response<'a>), Err<(&'a [u8], ErrorKind)>>

Auto Trait Implementations

impl<'a> RefUnwindSafe for Response<'a>

impl<'a> Send for Response<'a>

impl<'a> Sync for Response<'a>

impl<'a> Unpin for Response<'a>

impl<'a> UnwindSafe for Response<'a>

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, 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.