pub fn initialize() {
    INIT.call_once(|| {
        let _m = MOCK_SERVER_MTX.lock().unwrap();
        let config_help_ctx = MockServer::config_help_context();
        config_help_ctx.expect()
            .return_const(None);
        let desc_ctx = MockServer::description_context();
        desc_ctx.expect()
            .return_const(None);
        let longname_ctx = MockServer::longname_context();
        longname_ctx.expect()
            .return_const(None);
        let magic_config_key_ctx = MockServer::magic_config_key_context();
        magic_config_key_ctx.expect()
            .return_const(Some("magic_config_key"));
        let name_ctx = MockServer::name_context();
        name_ctx.expect()
            .return_const("Mock NBD Server");
        let version_ctx = MockServer::version_context();
        version_ctx.expect()
            .return_const(None);
        unsafe {
            PLUGIN = Some(plugin_init());
        }
    });
}
// One-time initialization of the plugin
One-time initialization of the plugin
One - time initialization of the plugin
pub fn initialize() {
    INIT.call_once(|| {
        let _m = MOCK_SERVER_MTX.lock().unwrap();
        let config_help_ctx = MockServer::config_help_context();
        config_help_ctx.expect()
            .return_const(None);
        let desc_ctx = MockServer::description_context();
        desc_ctx.expect()
            .return_const(None);
        let longname_ctx = MockServer::longname_context();
        longname_ctx.expect()
            .return_const(None);
        let magic_config_key_ctx = MockServer::magic_config_key_context();
        magic_config_key_ctx.expect()
            .return_const(Some("magic_config_key"));
        let name_ctx = MockServer::name_context();
        name_ctx.expect()
            .return_const("Mock NBD Server");
        let version_ctx = MockServer::version_context();
        version_ctx.expect()
            .return_const(None);
        unsafe {
            PLUGIN = Some(plugin_init());
        }
    });
}
pub fn initialize ( ) { INIT . call_once ( | | { let _m = MOCK_SERVER_MTX . lock ( ) . unwrap ( ) ; let config_help_ctx = MockServer :: config_help_context ( ) ; config_help_ctx . expect ( ) . return_const ( None ) ; let desc_ctx = MockServer :: description_context ( ) ; desc_ctx . expect ( ) . return_const ( None ) ; let longname_ctx = MockServer :: longname_context ( ) ; longname_ctx . expect ( ) . return_const ( None ) ; let magic_config_key_ctx = MockServer :: magic_config_key_context ( ) ; magic_config_key_ctx . expect ( ) . return_const ( Some ( " " ) ) ; let name_ctx = MockServer :: name_context ( ) ; name_ctx . expect ( ) . return_const ( " " ) ; let version_ctx = MockServer :: version_context ( ) ; version_ctx . expect ( ) . return_const ( None ) ; unsafe { PLUGIN = Some ( plugin_init ( ) ) ; } } ) ; }
One-time initialization of the plugin
One - time initialization of the plugin