pub struct SrsCallbackReq {
pub server_id: String,
pub action: SrsCallbackEvent,
pub client_id: String,
pub ip: IpAddr,
pub vhost: String,
pub app: String,
pub stream: Option<String>,
}Expand description
Request performed by SRS to HTTP Callback API.
Fields§
§server_id: StringID of the SRS server
action: SrsCallbackEventEvent that SRS reports about.
client_id: StringID of SRS client that happened event is related to.
ip: IpAddrIP address of SRS client that happened event is related to.
vhost: StringSRS vhost (virtual host) of RTMP stream that happened event is
related to.
app: StringSRS app of RTMP stream that happened event is related to.
stream: Option<String>SRS stream of RTMP stream that happened event is related to.
Implementations§
Source§impl SrsCallbackReq
impl SrsCallbackReq
Sourcepub fn app_stream(&self) -> String
pub fn app_stream(&self) -> String
Combine SrsCallbackReq::app and SrsCallbackReq::stream fields.
Uses for tracing
Trait Implementations§
Source§impl Clone for SrsCallbackReq
impl Clone for SrsCallbackReq
Source§fn clone(&self) -> SrsCallbackReq
fn clone(&self) -> SrsCallbackReq
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 Debug for SrsCallbackReq
impl Debug for SrsCallbackReq
Source§impl<'de> Deserialize<'de> for SrsCallbackReq
impl<'de> Deserialize<'de> for SrsCallbackReq
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
Auto Trait Implementations§
impl Freeze for SrsCallbackReq
impl RefUnwindSafe for SrsCallbackReq
impl Send for SrsCallbackReq
impl Sync for SrsCallbackReq
impl Unpin for SrsCallbackReq
impl UnwindSafe for SrsCallbackReq
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