pub struct DeviceImpl { /* private fields */ }Expand description
A TUN device for Android/iOS/…
Trait Implementations§
Source§impl AsFd for DeviceImpl
impl AsFd for DeviceImpl
Source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Source§impl AsRawFd for DeviceImpl
impl AsRawFd for DeviceImpl
Source§impl FromRawFd for DeviceImpl
impl FromRawFd for DeviceImpl
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 moreSource§impl IntoRawFd for DeviceImpl
impl IntoRawFd for DeviceImpl
Source§fn into_raw_fd(self) -> RawFd
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
Auto Trait Implementations§
impl !Freeze for DeviceImpl
impl RefUnwindSafe for DeviceImpl
impl Send for DeviceImpl
impl Sync for DeviceImpl
impl Unpin for DeviceImpl
impl UnwindSafe for DeviceImpl
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