Struct tox::core::ToxOptions
[-]
[+]
[src]
pub struct ToxOptions { // some fields omitted }
ToxOptions provides options that tox will be initalized with.
Usage:
let txo = ToxOptions::new().ipv6().proxy("[proxy address]", port);
let tox = Tox::new(txo);
Methods
impl ToxOptions
fn new() -> ToxOptions
Create a default ToxOptions struct
fn ipv6(self) -> ToxOptions
Enable IPv6
fn no_udp(self) -> ToxOptions
Disable UDP
fn proxy(self, ty: ProxyType, addr: &str, port: u16) -> ToxOptions
Use a proxy