pub struct RequestLine<'a> {
pub method: Method<'a>,
pub uri: &'a str,
pub version: Version,
}Expand description
Representation of a SIP Request-Line
A SIP Request-Line is composed of a Method, a Request-URI and a protocol version descriptor.
The Request-Line is always terminated by CRLF (\r\n), and is followed by one or more headers.
The headers are available in the Request object.
§Sample Request-Line
ⓘ
|- URI
--------------------------
INVITE sip:bob@biloxi.example.com SIP/2.0
------ -------
|- method |- Protocol versionFields§
§method: Method<'a>the parsed Method
uri: &'a strthe URI describing the user or service being addressed
version: Versionthe version of the SIP protocol this request adheres to. There is virtually only one version in use: 2.0.
Trait Implementations§
Source§impl<'a> Clone for RequestLine<'a>
impl<'a> Clone for RequestLine<'a>
Source§fn clone(&self) -> RequestLine<'a>
fn clone(&self) -> RequestLine<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RequestLine<'a>
impl<'a> Debug for RequestLine<'a>
Source§impl<'a> PartialEq for RequestLine<'a>
impl<'a> PartialEq for RequestLine<'a>
impl<'a> StructuralPartialEq for RequestLine<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestLine<'a>
impl<'a> RefUnwindSafe for RequestLine<'a>
impl<'a> Send for RequestLine<'a>
impl<'a> Sync for RequestLine<'a>
impl<'a> Unpin for RequestLine<'a>
impl<'a> UnsafeUnpin for RequestLine<'a>
impl<'a> UnwindSafe for RequestLine<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more