jarust_core 1.7.1

A janus client SDK in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
pub struct JaConfig {
    /// Url to janus server
    pub url: String,
    /// Janus api secret if any
    pub apisecret: Option<String>,
    /// root path for janus, when using HTTP it should be `janus` unless it was changed
    /// in janus config
    pub server_root: String,
    /// Ring buffer capacity, used when picking WebSocket janus api
    pub capacity: usize,
}

#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
pub enum JanusAPI {
    WebSocket,
    Restful,
}