pub enum TunMode {
Kernel,
Userspace,
}Expand description
TUN mode selection.
Variants§
Kernel
Use the OS kernel TUN device (requires admin/root on most platforms).
Userspace
Use smoltcp userspace network stack (no special privileges needed).
Trait Implementations§
impl Copy for TunMode
impl Eq for TunMode
impl StructuralPartialEq for TunMode
Auto Trait Implementations§
impl Freeze for TunMode
impl RefUnwindSafe for TunMode
impl Send for TunMode
impl Sync for TunMode
impl Unpin for TunMode
impl UnsafeUnpin for TunMode
impl UnwindSafe for TunMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.