fn wait(self) -> Result<STREAM, STREAM> {
        while !self.is_complete() && !self.has_error() {}
        if self.is_complete() {
            Ok(self.reset())
        } else {
            Err(self.reset())
        }
    }
/// Wait until transfer is either complete or has error.
Wait until transfer is either complete or has error.
Wait until transfer is either complete or has error .
fn wait(self) -> Result<STREAM, STREAM> {
        while !self.is_complete() && !self.has_error() {}
        if self.is_complete() {
            Ok(self.reset())
        } else {
            Err(self.reset())
        }
    }
fn wait ( self ) -> Result < STREAM , STREAM > { while ! self . is_complete ( ) && ! self . has_error ( ) { } if self . is_complete ( ) { Ok ( self . reset ( ) ) } else { Err ( self . reset ( ) ) } }
Wait until transfer is either complete or has error.
Wait until transfer is either complete or has error .
self