pub struct SrsClient { /* private fields */ }Implementations§
Source§impl SrsClient
impl SrsClient
Sourcepub async fn kickoff_client<T: Into<String>>(
self,
id: T,
) -> Result<SrsClientResp, SrsClientError>
pub async fn kickoff_client<T: Into<String>>( self, id: T, ) -> Result<SrsClientResp, SrsClientError>
Kicks off a client connected to SRS server by its id.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_version(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_version(self) -> Result<SrsClientResp, SrsClientError>
Retrieves the server version.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_vhosts(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_vhosts(self) -> Result<SrsClientResp, SrsClientError>
Manages all vhosts or a specified vhost.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_streams(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_streams(self) -> Result<SrsClientResp, SrsClientError>
Manages all streams or a specified stream.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_clients(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_clients(self) -> Result<SrsClientResp, SrsClientError>
Manages all clients or a specified client, default query top 10 clients.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_features(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_features(self) -> Result<SrsClientResp, SrsClientError>
Retrieves the supported features of SRS.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_rusages(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_rusages(self) -> Result<SrsClientResp, SrsClientError>
Retrieves the rusage of SRS.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_self_proc_stats(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_self_proc_stats(self) -> Result<SrsClientResp, SrsClientError>
Retrieves the self process stats.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_system_proc_stats(
self,
) -> Result<SrsClientResp, SrsClientError>
pub async fn get_system_proc_stats( self, ) -> Result<SrsClientResp, SrsClientError>
Retrieves the system process stats.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.
Sourcepub async fn get_meminfos(self) -> Result<SrsClientResp, SrsClientError>
pub async fn get_meminfos(self) -> Result<SrsClientResp, SrsClientError>
Retrieves the meminfo of system.
§Errors
If API request cannot be performed, or fails. See SrsClientError
for details.