pub fn id(proxy: &impl UntypedBorrowedProxyWrapper) -> u32Expand description
Returns the wayland object ID of a proxy.
If the proxy has already been destroyed, this function returns either the original ID or 0.
ยง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_eq!(proxy::id(&*display), 1);