You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: game.rs
    path of file: ./repos/CLEO-iOS/src/game/streaming
    
    the code of the file until where you have to start completion: use std::ffi::CStr;

use eyre::Result;

use crate::hook;

/// Opaque semaphore type. Use only as
    
    pub fn pop_blocking(&mut self) -> &'static mut Stream {
        self.semaphore_ref.wait();

        // Get the stream index from the queue and remove it.
        let stream_index = self.index_queue_ref.first() as usize;
        self.index_queue_ref.remove_first();

        // Find the stream corresponding to the index.
        &mut Stream::streams()[stream_index]
    }