pub enum MessageLine {
Request(RequestLine),
Response(StatusLine),
}Expand description
The leading line of any SIP message
Variants§
Request(RequestLine)
Response(StatusLine)
Implementations§
Source§impl MessageLine
impl MessageLine
pub fn is_request(&self) -> bool
pub fn request_method(&self) -> Option<&Method>
Trait Implementations§
Source§impl Clone for MessageLine
impl Clone for MessageLine
Source§fn clone(&self) -> MessageLine
fn clone(&self) -> MessageLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageLine
impl Debug for MessageLine
Source§impl FromStr for MessageLine
impl FromStr for MessageLine
Source§impl Parse for MessageLine
impl Parse for MessageLine
Auto Trait Implementations§
impl !Freeze for MessageLine
impl RefUnwindSafe for MessageLine
impl Send for MessageLine
impl Sync for MessageLine
impl Unpin for MessageLine
impl UnsafeUnpin for MessageLine
impl UnwindSafe for MessageLine
Blanket Implementations§
Source§impl<T> AppendCtx for Twhere
T: Print,
impl<T> AppendCtx for Twhere
T: Print,
Source§fn print_ctx<'a>(&'a self, ctx: PrintCtx<'a>) -> WithPrintCtx<'a, Self>
fn print_ctx<'a>(&'a self, ctx: PrintCtx<'a>) -> WithPrintCtx<'a, Self>
Wrap a type inside a
WithPrintCtx so it implements displaySource§fn default_print_ctx(&self) -> WithPrintCtx<'_, Self>
fn default_print_ctx(&self) -> WithPrintCtx<'_, Self>
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