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: actor.rs
    path of file: ./repos/iroh/iroh-sync/src
    
    the code of the file until where you have to start completion: //! This contains an actor spawned on a separate thread to process replica and 
    
    fn open(&mut self, namespace: NamespaceId, opts: OpenOpts) -> Result<()> {
        let open_cb = || {
            let mut replica = self.store.open_replica(&namespace)?;
            if let Some(cb) = &self.content_status_callback {
                replica.set_content_status_callback(Arc::clone(cb));
            }
            Ok(replica)
        };
        self.states.open_with(namespace, opts, open_cb)
    }