rusturn 0.0.7

A Rust implementation of TURN server and client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use stun_codec::rfc5389;

use Result;

#[derive(Debug)]
pub struct AuthParams {
    username: rfc5389::attributes::Username,
    password: String,
}
impl AuthParams {
    pub fn new(username: String, password: String) -> Result<Self> {
        let username = track!(rfc5389::attributes::Username::new(username))?;
        Ok(AuthParams { username, password })
    }
}