pub enum SrsCallbackEvent {
OnConnect,
OnPublish,
OnUnpublish,
OnPlay,
OnStop,
OnDvr,
OnHls,
}Expand description
Possible SRS events in HTTP Callback API that this application reacts onto.
Variants§
OnConnect
OnPublish
SRS client publishes a new stream.
OnUnpublish
SRS client stops publishing its stream.
OnPlay
SRS client plays an existing stream.
OnStop
SRS client stops playing an existing stream.
OnDvr
SRS records an existing stream.
OnHls
Trait Implementations§
Source§impl Clone for SrsCallbackEvent
impl Clone for SrsCallbackEvent
Source§fn clone(&self) -> SrsCallbackEvent
fn clone(&self) -> SrsCallbackEvent
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 SrsCallbackEvent
impl Debug for SrsCallbackEvent
Source§impl<'de> Deserialize<'de> for SrsCallbackEvent
impl<'de> Deserialize<'de> for SrsCallbackEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SrsCallbackEvent
impl Display for SrsCallbackEvent
Source§impl Serialize for SrsCallbackEvent
impl Serialize for SrsCallbackEvent
impl Copy for SrsCallbackEvent
Auto Trait Implementations§
impl Freeze for SrsCallbackEvent
impl RefUnwindSafe for SrsCallbackEvent
impl Send for SrsCallbackEvent
impl Sync for SrsCallbackEvent
impl Unpin for SrsCallbackEvent
impl UnsafeUnpin for SrsCallbackEvent
impl UnwindSafe for SrsCallbackEvent
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