[−][src]Enum xylosip::Message
Representation of a SIP message (either a Request or a Response)
Variants
Request(Request<'a>)
variant when a SIP request is parsed
Response(Response<'a>)
variant when a SIP response is parsed
Methods
impl<'a> Message<'a>
[src]
pub fn parse(input: &'a [u8]) -> Result<Self, Error<'a, &[u8]>>
[src]
Attempts to parse a byte-slice representation of a SIP message
This method should be the primary way to parse data coming from the network, as it is rarely known whether the next message that will arrive on the wire will be a request or a response (unless a connected protocol is used).
Trait Implementations
impl<'a> Clone for Message<'a>
[src]
impl<'a> Debug for Message<'a>
[src]
impl<'a> PartialEq<Message<'a>> for Message<'a>
[src]
impl<'a> StructuralPartialEq for Message<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,