pub struct ResponseHeader { /* private fields */ }Expand description
RTSP response header.
Implementations§
Source§impl ResponseHeader
impl ResponseHeader
Sourcepub fn status_code(&self) -> u16
pub fn status_code(&self) -> u16
Get the status code.
Sourcepub fn status_message(&self) -> &StatusMessage
pub fn status_message(&self) -> &StatusMessage
Get the status message.
Sourcepub fn get_all_header_fields(&self) -> Iter<'_> ⓘ
pub fn get_all_header_fields(&self) -> Iter<'_> ⓘ
Get all header fields.
Sourcepub fn get_header_fields<'a, N>(&'a self, name: &'a N) -> FieldIter<'a> ⓘ
pub fn get_header_fields<'a, N>(&'a self, name: &'a N) -> FieldIter<'a> ⓘ
Get header fields corresponding to a given name.
Sourcepub fn get_header_field<'a, N>(&'a self, name: &'a N) -> Option<&'a HeaderField>
pub fn get_header_field<'a, N>(&'a self, name: &'a N) -> Option<&'a HeaderField>
Get the last header field of a given name.
Sourcepub fn get_header_field_value<'a, N>(
&'a self,
name: &'a N,
) -> Option<&'a HeaderFieldValue>
pub fn get_header_field_value<'a, N>( &'a self, name: &'a N, ) -> Option<&'a HeaderFieldValue>
Get value of the last header field with a given name.
Trait Implementations§
Source§impl Clone for ResponseHeader
impl Clone for ResponseHeader
Source§fn clone(&self) -> ResponseHeader
fn clone(&self) -> ResponseHeader
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 Encoder<&ResponseHeader> for ResponseHeaderEncoder
impl Encoder<&ResponseHeader> for ResponseHeaderEncoder
Source§impl From<ResponseHeader> for OutgoingResponseBuilder
Available on crate feature server only.
impl From<ResponseHeader> for OutgoingResponseBuilder
Available on crate feature
server only.Source§fn from(header: ResponseHeader) -> Self
fn from(header: ResponseHeader) -> Self
Converts to this type from the input type.
Source§impl From<ResponseHeader> for ResponseBuilder
impl From<ResponseHeader> for ResponseBuilder
Source§fn from(header: ResponseHeader) -> ResponseBuilder
fn from(header: ResponseHeader) -> ResponseBuilder
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ResponseHeader
impl RefUnwindSafe for ResponseHeader
impl Send for ResponseHeader
impl Sync for ResponseHeader
impl Unpin for ResponseHeader
impl UnsafeUnpin for ResponseHeader
impl UnwindSafe for ResponseHeader
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