Function js::glue::CreateRustJSPrincipal [] [src]

pub unsafe extern "C" fn CreateRustJSPrincipal(
    origin: *const c_void,
    destroy: Option<unsafe extern "C" fn(principal: *mut JSPrincipals)>,
    write: Option<unsafe extern "C" fn(cx: *mut JSContext, writer: *mut JSStructuredCloneWriter) -> bool>
) -> *mut JSPrincipals