pub fn load_libxcb() -> Result<(), LibxcbLoadError>
Expand description
Tries to dynamically load libxcb, returning an error on failure.
It is not required to call this function, as libxcb will be lazily loaded. However, if a lazy load fails, a panic will be raised, missing the chance to (nicely) handle the error.
It is safe to call this function more than once from the same or different threads. Only the first call will try to load libxcb, subsequent calls will always return the same result.