MultiRead
struct MultiRead
MultiReader returns a Reader that's the logical concatenation of the provided input readers.
Implementions
Methods
[src]
pub fn read(self, buf: Bytes): int throws IoError {
loop {
if (let reader = self.readers.first()) {
let n = try reader.read(buf);
if (n > 0) {
return n;
}
self.readers.pop_front();
} else {
return 0;
}
}
}
[src]
pub fn read(self, buf: Bytes): int throws IoError {
loop {
if (let reader = self.readers.first()) {
let n = try reader.read(buf);
if (n > 0) {
return n;
}
self.readers.pop_front();
} else {
return 0;
}
}
}