[][src]Enum xylosip::Method

pub enum Method<'a> {
    Invite,
    Ack,
    Options,
    Bye,
    Cancel,
    Register,
    Extension(&'a str),
}

Representation of a SIP method

A SIP method informs on the request type (when it is part of a Request-Line), or what a response refers to (when part of a CSeq header), or what kind of methods a server can handle (when part of accept headers).

Note: INFO is not supported, but can be if there is a use for it. Patches welcome!

Variants

Invite

used to setup sessions

Ack

used to confirm reception of a previous message

Options

used to query servers about their capabilities

Bye

used to tear down sessions

Cancel

used to abort a transaction, or disavow a previous message

Register

used to register contact information

Extension(&'a str)

other extension to the SIP protocol

Trait Implementations

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

impl<'a> Copy for Method<'a>[src]

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Method<'a>

impl<'a> Send for Method<'a>

impl<'a> Sync for Method<'a>

impl<'a> Unpin for Method<'a>

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