[−][src]Struct libsip::RequestGenerator
Sip Request Generator. When build is called the struct
is consumed and produces a SipMessage::Request variant.
Calling the method
& uri
methods before the build
method is required.
Implementations
impl RequestGenerator
[src]
pub fn new() -> RequestGenerator
[src]
Create a new instance.
pub fn method(self, method: Method) -> RequestGenerator
[src]
Set the sip request method.
pub fn uri(self, uri: Uri) -> RequestGenerator
[src]
Set the sip request uri.
pub fn headers(self, headers: Vec<Header>) -> RequestGenerator
[src]
Add multiple headers to the request header list. This use's Vec::extend so that the current items in the header list are kept.
pub fn header(self, header: Header) -> RequestGenerator
[src]
Add a single header to the request header list.
pub fn header_ref(&self) -> &Headers
[src]
Get a reference to the header list.
pub fn headers_ref_mut(&mut self) -> &mut Headers
[src]
Get a mutable reference to the header list.
pub fn body(self, body: Vec<u8>) -> RequestGenerator
[src]
Set the sip request body. This completely replaces the current request body.
pub fn build(self) -> IoResult<SipMessage>
[src]
Build the sip request.
Trait Implementations
impl Default for RequestGenerator
[src]
fn default() -> RequestGenerator
[src]
Auto Trait Implementations
impl RefUnwindSafe for RequestGenerator
impl Send for RequestGenerator
impl Sync for RequestGenerator
impl Unpin for RequestGenerator
impl UnwindSafe for RequestGenerator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,