[]Struct sipua::request::RequestLine

pub struct RequestLine<'a> {
    pub method: Method,
    pub uri: &'a str,
    pub sip_version: SipVersion,
}

Ex: INVITE sip:user@example.com SIP/2.0 The Request line and u8 buffer shoud have the same life time

Fields

method: Methoduri: &'a strsip_version: SipVersion

Methods

impl<'a> RequestLine<'a>

pub fn parse(rl: &[u8]) -> Result<(&[u8], RequestLine), Err<(&[u8], ErrorKind)>>

Auto Trait Implementations

impl<'a> RefUnwindSafe for RequestLine<'a>

impl<'a> Send for RequestLine<'a>

impl<'a> Sync for RequestLine<'a>

impl<'a> Unpin for RequestLine<'a>

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