pub struct RtspResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: String,
}Available on crate features
ingest and rtsp only.Expand description
A parsed RTSP response.
Fields§
§status: u16Numeric status code (200, 401, 461, …).
headers: Vec<(String, String)>Header name/value pairs (verbatim order).
body: StringMessage body (the SDP for a DESCRIBE response).
Implementations§
Trait Implementations§
Source§impl Clone for RtspResponse
impl Clone for RtspResponse
Source§fn clone(&self) -> RtspResponse
fn clone(&self) -> RtspResponse
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 RtspResponse
impl Debug for RtspResponse
impl Eq for RtspResponse
Source§impl PartialEq for RtspResponse
impl PartialEq for RtspResponse
Source§fn eq(&self, other: &RtspResponse) -> bool
fn eq(&self, other: &RtspResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RtspResponse
Auto Trait Implementations§
impl Freeze for RtspResponse
impl RefUnwindSafe for RtspResponse
impl Send for RtspResponse
impl Sync for RtspResponse
impl Unpin for RtspResponse
impl UnsafeUnpin for RtspResponse
impl UnwindSafe for RtspResponse
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