pub unsafe fn initialize(&mut self, parent: *mut c_void, url: &str) {
        log::debug!("WebviewHolder::initialize - Attaching to parent NSView");
        self.attach_to_parent(parent);

        log::debug!("WebviewHolder::initialize - Setting-up message handler");
        self.attach_message_handler();

        log::debug!("WebviewHolder::initialize - Loading app URL");
        self.webview.load_url(url);
    }
/// Attach and initialize this webkit holder onto a NSView* that the host forwards.
///
/// Loads the front-end URL, attaches message handlers & pins the webkit onto the parent.
///
/// # Safety
/// Unsafe due to:
///
/// - Operating over a void* passed in by the plugin host
/// - Calling into Objective-C APIs
Attach and initialize this webkit holder onto a NSView* that the host forwards.
Loads the front-end URL, attaches message handlers & pins the webkit onto the parent.
Attach and initialize this webkit holder onto a NSView * that the host forwards . Loads the front - end URL attaches message handlers & pins the webkit onto the parent .
pub unsafe fn initialize(&mut self, parent: *mut c_void, url: &str) {
        log::debug!("WebviewHolder::initialize - Attaching to parent NSView");
        self.attach_to_parent(parent);
        log::debug!("WebviewHolder::initialize - Setting-up message handler");
        self.attach_message_handler();
        log::debug!("WebviewHolder::initialize - Loading app URL");
        self.webview.load_url(url);
    }
pub unsafe fn initialize ( & mut self , parent : * mut c_void , url : & str ) { log :: debug ! ( " " ) ; self . attach_to_parent ( parent ) ; log :: debug ! ( " " ) ; self . attach_message_handler ( ) ; log :: debug ! ( " " ) ; self . webview . load_url ( url ) ; }
Attach and initialize this webkit holder onto a NSView* that the host forwards.
Attach and initialize this webkit holder onto a NSView * that the host forwards .
&mut self
parent
*mut c_void
url
&str
&mut self
parent
*mut c_void
url
&str
safety
Unsafe due to.

Operating over a void* passed in by the plugin host
Calling into Objective-C APIs
Unsafe due to . Operating over a void * passed in by the plugin host Calling into Objective - C APIs