Struct kernel::io::flat_map::FlatMap
[−]
[src]
pub struct FlatMap {
// some fields omitted
}An adaptor which will modify the data produced by a reader.
pub struct FlatMap {
// some fields omitted
}An adaptor which will modify the data produced by a reader.
impl FlatMapfn 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) -> Selfimpl AsyncRead for FlatMapfn read_async(&self, buf: Vec<u8>) -> Promise<Result<Vec<u8>>>