ReadClose
interface ReadClose
The ReadClose interface groups the Read
and Close
interfaces.
Methods
take_close
pub fn take_close(self, limit: int): ReadClose
[src]
fn take_close(self, limit: int): ReadClose {
return self.take(limit).to_read_close(self.close);
}
Creates an ReadClose
which will read at most limit bytes from it.
take_close
pub fn take_close(self, limit: int): ReadClose
[src]
fn take_close(self, limit: int): ReadClose {
return self.take(limit).to_read_close(self.close);
}
Creates an ReadClose
which will read at most limit bytes from it.
Creates an ReadClose
which will read at most limit bytes from it.