Enum rtsp_types::headers::notify_reason::NotifyReason
source · pub enum NotifyReason {
EndOfStream,
MediaPropertiesUpdate,
ScaleChange,
Extension(String),
}
Expand description
Notify-Reason
header (RFC 7826 section 18.32).
Variants§
Implementations§
Trait Implementations§
source§impl Clone for NotifyReason
impl Clone for NotifyReason
source§fn clone(&self) -> NotifyReason
fn clone(&self) -> NotifyReason
Returns a copy 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 NotifyReason
impl Debug for NotifyReason
source§impl Display for NotifyReason
impl Display for NotifyReason
source§impl FromStr for NotifyReason
impl FromStr for NotifyReason
§type Err = HeaderParseError
type Err = HeaderParseError
The associated error which can be returned from parsing.
source§impl Ord for NotifyReason
impl Ord for NotifyReason
source§fn cmp(&self, other: &NotifyReason) -> Ordering
fn cmp(&self, other: &NotifyReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NotifyReason
impl PartialEq for NotifyReason
source§fn eq(&self, other: &NotifyReason) -> bool
fn eq(&self, other: &NotifyReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NotifyReason
impl PartialOrd for NotifyReason
source§fn partial_cmp(&self, other: &NotifyReason) -> Option<Ordering>
fn partial_cmp(&self, other: &NotifyReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypedHeader for NotifyReason
impl TypedHeader for NotifyReason
source§fn from_headers(
headers: impl AsRef<Headers>
) -> Result<Option<Self>, HeaderParseError>
fn from_headers( headers: impl AsRef<Headers> ) -> Result<Option<Self>, HeaderParseError>
Parses the header from headers.
source§fn insert_into(&self, headers: impl AsMut<Headers>)
fn insert_into(&self, headers: impl AsMut<Headers>)
Inserts the header into headers.
impl Eq for NotifyReason
impl StructuralPartialEq for NotifyReason
Auto Trait Implementations§
impl RefUnwindSafe for NotifyReason
impl Send for NotifyReason
impl Sync for NotifyReason
impl Unpin for NotifyReason
impl UnwindSafe for NotifyReason
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