pub struct EmbeddedIOAsyncAdapter<T>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for EmbeddedIOAsyncAdapter<T>
impl<T: Clone> Clone for EmbeddedIOAsyncAdapter<T>
Source§fn clone(&self) -> EmbeddedIOAsyncAdapter<T>
fn clone(&self) -> EmbeddedIOAsyncAdapter<T>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for EmbeddedIOAsyncAdapter<T>
impl<T: Debug> Debug for EmbeddedIOAsyncAdapter<T>
Source§impl<T: ErrorType> ErrorType for EmbeddedIOAsyncAdapter<T>
impl<T: ErrorType> ErrorType for EmbeddedIOAsyncAdapter<T>
Source§impl<T: Hash> Hash for EmbeddedIOAsyncAdapter<T>
impl<T: Hash> Hash for EmbeddedIOAsyncAdapter<T>
Source§impl<T: Ord> Ord for EmbeddedIOAsyncAdapter<T>
impl<T: Ord> Ord for EmbeddedIOAsyncAdapter<T>
Source§impl<T: PartialEq> PartialEq for EmbeddedIOAsyncAdapter<T>
impl<T: PartialEq> PartialEq for EmbeddedIOAsyncAdapter<T>
Source§impl<T: PartialOrd> PartialOrd for EmbeddedIOAsyncAdapter<T>
impl<T: PartialOrd> PartialOrd for EmbeddedIOAsyncAdapter<T>
Source§fn partial_cmp(&self, other: &EmbeddedIOAsyncAdapter<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &EmbeddedIOAsyncAdapter<T>) -> Option<Ordering>
Source§impl<T> Read for EmbeddedIOAsyncAdapter<T>where
T: Read + Unpin,
impl<T> Read for EmbeddedIOAsyncAdapter<T>where
T: Read + Unpin,
Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreSource§impl<T> Read for EmbeddedIOAsyncAdapter<T>where
T: Read + ReadCancelSafe + Unpin,
impl<T> Read for EmbeddedIOAsyncAdapter<T>where
T: Read + ReadCancelSafe + Unpin,
Source§impl<T> Write for EmbeddedIOAsyncAdapter<T>where
T: Write + Unpin,
impl<T> Write for EmbeddedIOAsyncAdapter<T>where
T: Write + Unpin,
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§impl<T> Write for EmbeddedIOAsyncAdapter<T>where
T: Write + WriteCancelSafe + Unpin,
impl<T> Write for EmbeddedIOAsyncAdapter<T>where
T: Write + WriteCancelSafe + Unpin,
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize, Self::Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
impl<T: Copy> Copy for EmbeddedIOAsyncAdapter<T>
impl<T: Eq> Eq for EmbeddedIOAsyncAdapter<T>
impl<T: Write + Unpin> FlushCancelSafe for EmbeddedIOAsyncAdapter<T>
impl<T: Read + Unpin> ReadCancelSafe for EmbeddedIOAsyncAdapter<T>
impl<T> StructuralPartialEq for EmbeddedIOAsyncAdapter<T>
impl<T: Write + Unpin> WriteCancelSafe for EmbeddedIOAsyncAdapter<T>
Auto Trait Implementations§
impl<T> Freeze for EmbeddedIOAsyncAdapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for EmbeddedIOAsyncAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for EmbeddedIOAsyncAdapter<T>where
T: Send,
impl<T> Sync for EmbeddedIOAsyncAdapter<T>where
T: Sync,
impl<T> Unpin for EmbeddedIOAsyncAdapter<T>where
T: Unpin,
impl<T> UnwindSafe for EmbeddedIOAsyncAdapter<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)