Struct cros_async::io_ext::AsyncWrapper
source · pub struct AsyncWrapper<T>(T);
Expand description
Simple wrapper struct to implement IntoAsync on foreign types.
Tuple Fields§
§0: T
Implementations§
source§impl<T> AsyncWrapper<T>
impl<T> AsyncWrapper<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the AsyncWrapper
, returning the inner struct.
Trait Implementations§
source§impl<T: AsRawDescriptor> AsRawDescriptor for AsyncWrapper<T>
impl<T: AsRawDescriptor> AsRawDescriptor for AsyncWrapper<T>
source§fn as_raw_descriptor(&self) -> RawDescriptor
fn as_raw_descriptor(&self) -> RawDescriptor
Returns the underlying raw descriptor. Read more
source§impl<T> Deref for AsyncWrapper<T>
impl<T> Deref for AsyncWrapper<T>
source§impl<T> DerefMut for AsyncWrapper<T>
impl<T> DerefMut for AsyncWrapper<T>
impl<T: AsRawDescriptor> IntoAsync for AsyncWrapper<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for AsyncWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for AsyncWrapper<T>where
T: Send,
impl<T> Sync for AsyncWrapper<T>where
T: Sync,
impl<T> Unpin for AsyncWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for AsyncWrapper<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
§fn as_raw_descriptors(&self) -> Vec<i32>
fn as_raw_descriptors(&self) -> Vec<i32>
Returns the underlying raw descriptors. Read more
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