TunInterfaceOptions -> TunOptions

This commit is contained in:
dav 2023-06-28 12:23:33 -07:00 committed by David Zhong
parent f20f56062c
commit d3882bd008
6 changed files with 13 additions and 13 deletions

View file

@ -4,7 +4,7 @@ use std::io::Error;
use super::TunInterface;
#[derive(Default)]
pub struct TunInterfaceOptions {
pub struct TunOptions {
/// (Windows + Linux) Name the tun interface.
pub(crate) name: Option<String>,
/// (Linux) Don't include packet information.
@ -13,7 +13,7 @@ pub struct TunInterfaceOptions {
pub(crate) tun_excl: Option<()>,
}
impl TunInterfaceOptions {
impl TunOptions {
pub fn new() -> Self {
Self::default()
}