pub fn wl_proxy(
proxy: &impl UntypedBorrowedProxyWrapper,
) -> Option<NonNull<wl_proxy>>Expand description
Returns the wl_proxy pointer of a proxy.
This function returns a null pointer if the proxy has already been destroyed.
If this function returns a non-null pointer, the proxy might still get invalidated at
any time when another thread destroys the proxy. Consider using lock instead.
ยงExample
let lib = Libwayland::open().unwrap();
let con = lib.connect_to_default_display().unwrap();
let queue = con.create_queue(c"");
let display: WlDisplay = queue.display();
assert!(proxy::wl_proxy(&*display).is_some());