Struct kernel::io::flat_map::FlatMap [−] [src]

pub struct FlatMap {
    // some fields omitted
}

An adaptor which will modify the data produced by a reader.

Methods

impl FlatMap

fn new<F: Fn(Vec<u8>) -> Vec<u8> + 'static, G: Fn(&mut Vec<u8>) -> Option<Vec<u8>> + 'static>(input: KObjRef<AsyncRead>, buf_len: usize, collect: F, finished: G) -> Self

Trait Implementations

impl AsyncRead for FlatMap

fn read_async(&self, buf: Vec<u8>) -> Promise<Result<Vec<u8>>>