Struct tun_rs::async::AsyncDevice
source · pub struct AsyncDevice { /* private fields */ }Expand description
An async TUN device wrapper around a TUN device.
Implementations§
source§impl AsyncDevice
impl AsyncDevice
Trait Implementations§
source§impl AbstractDevice for AsyncDevice
impl AbstractDevice for AsyncDevice
source§fn destination(&self) -> Result<IpAddr>
fn destination(&self) -> Result<IpAddr>
Get the destination address.
source§fn set_broadcast<A: IntoAddress>(&self, value: A) -> Result<()>
fn set_broadcast<A: IntoAddress>(&self, value: A) -> Result<()>
Set the broadcast address.
source§fn set_network_address<A: IntoAddress>(
&self,
address: A,
netmask: A,
destination: Option<A>,
) -> Result<()>
fn set_network_address<A: IntoAddress>( &self, address: A, netmask: A, destination: Option<A>, ) -> Result<()>
Sets the network addresses of this adapter, including network address, subnet mask, and gateway
source§impl FromRawFd for AsyncDevice
impl FromRawFd for AsyncDevice
source§unsafe fn from_raw_fd(fd: RawFd) -> Self
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new instance of
Self from the given raw file
descriptor. Read moreAuto Trait Implementations§
impl !Freeze for AsyncDevice
impl !RefUnwindSafe for AsyncDevice
impl Send for AsyncDevice
impl Sync for AsyncDevice
impl Unpin for AsyncDevice
impl !UnwindSafe for AsyncDevice
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