pub struct RtspRequest {
pub method: String,
pub uri: String,
pub cseq: u32,
pub headers: Vec<(String, String)>,
}Available on crate features
ingest and rtsp only.Expand description
A parsed RTSP request (server-side view, for completeness/testing).
Fields§
§method: StringThe request method token.
uri: StringThe request URI.
cseq: u32CSeq sequence number echoed in the response.
headers: Vec<(String, String)>Header name/value pairs (verbatim order).
Implementations§
Source§impl RtspRequest
impl RtspRequest
Sourcepub fn parse(text: &str) -> Option<RtspRequest>
pub fn parse(text: &str) -> Option<RtspRequest>
Parse a complete request (headers terminated by a blank line). Returns
None if the request line or CSeq is missing/malformed.
Trait Implementations§
Source§impl Clone for RtspRequest
impl Clone for RtspRequest
Source§fn clone(&self) -> RtspRequest
fn clone(&self) -> RtspRequest
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 Debug for RtspRequest
impl Debug for RtspRequest
impl Eq for RtspRequest
Source§impl PartialEq for RtspRequest
impl PartialEq for RtspRequest
Source§fn eq(&self, other: &RtspRequest) -> bool
fn eq(&self, other: &RtspRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RtspRequest
Auto Trait Implementations§
impl Freeze for RtspRequest
impl RefUnwindSafe for RtspRequest
impl Send for RtspRequest
impl Sync for RtspRequest
impl Unpin for RtspRequest
impl UnsafeUnpin for RtspRequest
impl UnwindSafe for RtspRequest
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