[][src]Struct libsip::headers::Headers

pub struct Headers(pub Vec<Header>);

Wrapper around a Vec

to simplify creating and a list of headers

Implementations

impl Headers[src]

pub fn new() -> Headers[src]

pub fn push(&mut self, h: Header)[src]

Push a new Header onto the stack.

pub fn iter(&self) -> impl Iterator<Item = &Header>[src]

Access the underlying vec iterator.

pub fn extend(&mut self, i: Vec<Header>)[src]

Add the Headers onto the interior Vec

.

pub fn expires(&self) -> Option<Header>[src]

Return An Expires header if one is present.

pub fn event(&self) -> Option<Header>[src]

Return the Event header if one is present.

pub fn cseq(&self) -> Option<Header>[src]

Return the CSeq header if one is present.

pub fn from(&self) -> Option<Header>[src]

Return the From header if one is present.

pub fn to(&self) -> Option<Header>[src]

Return the To header if one is present.

pub fn contact(&self) -> Option<Header>[src]

Return the Contact header if one is present.

pub fn call_id(&self) -> Option<Header>[src]

Return the CoallId header if one is present.

pub fn via(&self) -> Option<Header>[src]

Return the Via header if one is present.

pub fn subscription_state(&self) -> Option<Header>[src]

Return the Subscription-State header if one is present.

pub fn xfs_sending_message(&self) -> Option<Header>[src]

Return XFS Sending Header if one is present.

Trait Implementations

impl Clone for Headers[src]

impl Debug for Headers[src]

impl Default for Headers[src]

impl IntoIterator for Headers[src]

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

type Item = Header

The type of the elements being iterated over.

impl PartialEq<Headers> for Headers[src]

impl StructuralPartialEq for Headers[src]

Auto Trait Implementations

impl RefUnwindSafe for Headers

impl Send for Headers

impl Sync for Headers

impl Unpin for Headers

impl UnwindSafe for Headers

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,