pub fn new_read<T>(&self, upstream: T) -> FramedRead<T>
        where T: AsyncRead,
    {
        FramedRead {
            inner: codec::FramedRead::new(upstream, Decoder {
                builder: *self,
                state: DecodeState::Head,
            }),
        }
    }
/// Create a configured length delimited `FramedRead`
///
/// # Examples
///
/// ```
/// # use tokio_io::AsyncRead;
/// use tokio_io::codec::length_delimited::Builder;
///
/// # fn bind_read<T: AsyncRead>(io: T) {
/// Builder::new()
///     .length_field_offset(0)
///     .length_field_length(2)
///     .length_adjustment(0)
///     .num_skip(0)
///     .new_read(io);
/// # }
/// ```
Create a configured length delimited `FramedRead`
Create a configured length delimited ` FramedRead `
pub fn new_read<T>(&self, upstream: T) -> FramedRead<T>
        where T: AsyncRead,
    {
        FramedRead {
            inner: codec::FramedRead::new(upstream, Decoder {
                builder: *self,
                state: DecodeState::Head,
            }),
        }
    }
pub fn new_read < T > ( & self , upstream : T ) -> FramedRead < T > where T : AsyncRead , { FramedRead { inner : codec :: FramedRead :: new ( upstream , Decoder { builder : * self , state : DecodeState :: Head , } ) , } }
Create a configured length delimited `FramedRead`
Create a configured length delimited ` FramedRead `
&self
upstream
T
&self
upstream
T
examples
None
use tokio_io::asyncread;
None
fn bind_read<t: asyncread>(io: t) {
None
}
None