[]Struct sipua::request::Request

pub struct Request<'a> {
    pub rl: RequestLine<'a>,
    pub headers: Vec<Header<'a>>,
    pub body: Option<&'a [u8]>,
}

Fields

rl: RequestLine<'a>

The request line. Example: OPTIONS sip:user@example.com SIP/2.0

headers: Vec<Header<'a>>

The request headers.

body: Option<&'a [u8]>

The body of message

Methods

impl<'a> Request<'a>

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Request<'a>

impl<'a> Send for Request<'a>

impl<'a> Sync for Request<'a>

impl<'a> Unpin for Request<'a>

impl<'a> UnwindSafe for Request<'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.