[][src]Enum xylosip::Message

pub enum Message<'a> {
    Request(Request<'a>),
    Response(Response<'a>),
}

Representation of a SIP message (either a Request or a Response)

Variants

Request(Request<'a>)

variant when a SIP request is parsed

Response(Response<'a>)

variant when a SIP response is parsed

Methods

impl<'a> Message<'a>[src]

pub fn parse(input: &'a [u8]) -> Result<Self, Error<'a, &[u8]>>[src]

Attempts to parse a byte-slice representation of a SIP message

This method should be the primary way to parse data coming from the network, as it is rarely known whether the next message that will arrive on the wire will be a request or a response (unless a connected protocol is used).

Trait Implementations

impl<'a> Clone for Message<'a>[src]

impl<'a> Debug for Message<'a>[src]

impl<'a> PartialEq<Message<'a>> for Message<'a>[src]

impl<'a> StructuralPartialEq for Message<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Message<'a>

impl<'a> Send for Message<'a>

impl<'a> Sync for Message<'a>

impl<'a> Unpin for Message<'a>

impl<'a> UnwindSafe for Message<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.