Struct webrtc_dtls::conn::DTLSConn
source · pub struct DTLSConn { /* private fields */ }
Implementations§
source§impl DTLSConn
impl DTLSConn
pub async fn new( conn: Arc<dyn Conn + Send + Sync>, config: Config, is_client: bool, initial_state: Option<State> ) -> Result<Self, Error>
pub async fn read( &self, p: &mut [u8], duration: Option<Duration> ) -> Result<usize, Error>
pub async fn write( &self, p: &[u8], duration: Option<Duration> ) -> Result<usize, Error>
pub async fn close(&self) -> Result<(), Error>
sourcepub async fn connection_state(&self) -> State
pub async fn connection_state(&self) -> State
connection_state returns basic DTLS details about the connection.
Note that this replaced the Export
function of v1.
sourcepub fn selected_srtpprotection_profile(&self) -> SrtpProtectionProfile
pub fn selected_srtpprotection_profile(&self) -> SrtpProtectionProfile
selected_srtpprotection_profile returns the selected SRTPProtectionProfile