/// Succeeds the open request, then verifies the blob is immediately closed (possibly after
/// handling a single Close request).
///
/// # Panics
///
/// Panics on error
Succeeds the open request, then verifies the blob is immediately closed (possibly after
handling a single Close request).
Succeeds the open request then verifies the blob is immediately closed ( possibly after handling a single Close request ) .
pub async fn expect_close(mut self) {
        self.send_on_open_with_readable(Status::OK);
        match self.stream.next().await {
            None => {}
            Some(Ok(FileRequest::Close { responder })) => {
                let _ = responder.send(Status::OK.into_raw());
            }
            Some(other) => panic!("unexpected request: {:?}", other),
        }
    }
pub async fn expect_close ( mut self ) { self . send_on_open_with_readable ( Status :: OK ) ; match self . stream . next ( ) . await { None => { } Some ( Ok ( FileRequest :: Close { responder } ) ) => { let _ = responder . send ( Status :: OK . into_raw ( ) ) ; } Some ( other ) => panic ! ( " " other ) , } }
Succeeds the open request, then verifies the blob is immediately closed (possibly after
handling a single Close request).
Succeeds the open request then verifies the blob is immediately closed ( possibly after handling a single Close request ) .
mut self
panics
Panics on error
Panics on error