summaryrefslogtreecommitdiffhomepage
path: root/talpid-tunnel/src/tun_provider/stub.rs
blob: 4227c2f8fbb67f37a81d0e4c262a5696f3bd58a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use super::TunConfig;

/// Error stub.
pub enum Error {}

/// Factory stub of tunnel devices.
pub struct StubTunProvider;

impl StubTunProvider {
    pub fn new() -> Self {
        StubTunProvider
    }

    pub fn get_tun(&mut self, _: TunConfig) -> Result<(), Error> {
        unimplemented!();
    }
}

impl Default for StubTunProvider {
    fn default() -> Self {
        Self::new()
    }
}