pub fn new_write<T, B>(&self, inner: T) -> FramedWrite<T, B>
        where T: AsyncWrite,
              B: IntoBuf,
    {
        FramedWrite {
            inner: inner,
            builder: *self,
            frame: None,
        }
    }
/// Create a configured length delimited `FramedWrite`
///
/// # Examples
///
/// ```
/// # extern crate tokio_io;
/// # extern crate bytes;
/// # use tokio_io::AsyncWrite;
/// # use tokio_io::codec::length_delimited;
/// # use bytes::BytesMut;
/// # fn write_frame<T: AsyncWrite>(io: T) {
/// # let _: length_delimited::FramedWrite<T, BytesMut> =
/// length_delimited::Builder::new()
///     .length_field_length(2)
///     .new_write(io);
/// # }
/// # pub fn main() {}
/// ```
Create a configured length delimited `FramedWrite`
Create a configured length delimited ` FramedWrite `
pub fn new_write<T, B>(&self, inner: T) -> FramedWrite<T, B>
        where T: AsyncWrite,
              B: IntoBuf,
    {
        FramedWrite {
            inner: inner,
            builder: *self,
            frame: None,
        }
    }
pub fn new_write < T , B > ( & self , inner : T ) -> FramedWrite < T , B > where T : AsyncWrite , B : IntoBuf , { FramedWrite { inner : inner , builder : * self , frame : None , } }
Create a configured length delimited `FramedWrite`
Create a configured length delimited ` FramedWrite `
&self
inner
T
&self
inner
T
examples
None
extern crate tokio_io;
None
extern crate bytes;
None
use tokio_io::asyncwrite;
None
use tokio_io::codec::length_delimited;
None
use bytes::bytesmut;
None
fn write_frame<t: asyncwrite>(io: t) {
None
let _: length_delimited::framedwrite<t, bytesmut> 
:Builder::new()
.length_field_length(2)
.new_write(io).
: Builder :: new () . length_field_length ( 2 ) . new_write ( io ) .
}
None
pub fn main() {}
None