pub fn await(&mut self) -> usize {
        self.shift();
        let stdin = io::stdin();
        let mut file = stdin.lock();
        let space = self.size - self.end;
        let mut received = 0;
        let mut this_chunk = 1;
        while received < space && this_chunk != 0 {
            this_chunk = self.protected_read(&mut file);
            received += this_chunk;
        }
        received
    }
/// Try to advance the end of the buffer forward by n bytes.
///
/// Returns how many bytes it could actually get.
Try to advance the end of the buffer forward by n bytes.
Returns how many bytes it could actually get.
Try to advance the end of the buffer forward by n bytes . Returns how many bytes it could actually get .
pub fn await(&mut self) -> usize {
        self.shift();
        let stdin = io::stdin();
        let mut file = stdin.lock();
        let space = self.size - self.end;
        let mut received = 0;
        let mut this_chunk = 1;
        while received < space && this_chunk != 0 {
            this_chunk = self.protected_read(&mut file);
            received += this_chunk;
        }
        received
    }
pub fn await ( & mut self ) -> usize { self . shift ( ) ; let stdin = io :: stdin ( ) ; let mut file = stdin . lock ( ) ; let space = self . size - self . end ; let mut received = 0 ; let mut this_chunk = 1 ; while received < space && this_chunk != 0 { this_chunk = self . protected_read ( & mut file ) ; received += this_chunk ; } received }
Try to advance the end of the buffer forward by n bytes.
Try to advance the end of the buffer forward by n bytes .
&mut self
&mut self