[]Struct sipua::response::StatusLine

pub struct StatusLine<'a> {
    pub sip_version: SipVersion,
    pub status_code: StatusCode,
    pub reason_phrase: &'a str,
}

Ex: SIP/2.0 401 Unauthorized

Fields

sip_version: SipVersionstatus_code: StatusCodereason_phrase: &'a str

Methods

impl<'a> StatusLine<'a>

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for StatusLine<'a>

impl<'a> Send for StatusLine<'a>

impl<'a> Sync for StatusLine<'a>

impl<'a> Unpin for StatusLine<'a>

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