[][src]Function skyway_webrtc_gateway_api::data::status

pub async fn status<'_>(
    data_connection_id: &'_ DataConnectionId
) -> Result<DataConnectionStatus, Error>

This function to get status of DataChannel

Example

use skyway_webrtc_gateway_api::prelude::DataConnectionId;
use skyway_webrtc_gateway_api::data::status;

async fn example() {
    let data_connection_id = DataConnectionId::new("dc-example");
    let result = status(&data_connection_id).await;
}