Struct async_byteorder::DecodeI16Native
[−]
[src]
pub struct DecodeI16Native { /* fields omitted */ }
Decode a i16
in native byte order.
Trait Implementations
impl AsyncDecode for DecodeNative
[src]
type Item = i16
The type of the value to decode.
type Error = Never
An error indicating how decoding can fail.
fn poll_decode<R: AsyncRead>(
self,
cx: &mut Context,
reader: &mut R
) -> PollDec<Self::Item, Self, Self::Error>
[src]
self,
cx: &mut Context,
reader: &mut R
) -> PollDec<Self::Item, Self, Self::Error>
Call reader.poll_read
exactly once, propgating any Err
and Pending
, and return how many bytes have been read, as well as the decoded value, once decoding is done. Read more