#[non_exhaustive]#[repr(u32)]pub enum cef_thread_id_t {
TID_UI = 0,
TID_FILE_BACKGROUND = 1,
TID_FILE_USER_VISIBLE = 2,
TID_FILE_USER_BLOCKING = 3,
TID_PROCESS_LAUNCHER = 4,
TID_IO = 5,
TID_RENDERER = 6,
TID_NUM_VALUES = 7,
}Expand description
Existing thread IDs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TID_UI = 0
The main thread in the browser. This will be the same as the main application thread if CefInitialize() is called with a CefSettings.multi_threaded_message_loop value of false. Do not perform blocking tasks on this thread. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. This thread will outlive all other CEF threads.
TID_FILE_BACKGROUND = 1
Used for blocking tasks like file system access where the user won’t notice if the task takes an arbitrarily long time to complete. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run.
TID_FILE_USER_VISIBLE = 2
Used for blocking tasks like file system access that affect UI or responsiveness of future user interactions. Do not use if an immediate response to a user interaction is expected. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. Examples:
- Updating the UI to reflect progress on a long task.
- Loading data that might be shown in the UI after a future user interaction.
TID_FILE_USER_BLOCKING = 3
Used for blocking tasks like file system access that affect UI immediately after a user interaction. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. Example: Generating data shown in the UI immediately after a click.
TID_PROCESS_LAUNCHER = 4
Used to launch and terminate browser processes.
TID_IO = 5
Used to process IPC and network messages. Do not perform blocking tasks on this thread. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run.
TID_RENDERER = 6
The main thread in the renderer. Used for all WebKit and V8 interaction. Tasks may be posted to this thread after CefRenderProcessHandler::OnWebKitInitialized but are not guaranteed to run before sub-process termination (sub-processes may be killed at any time without warning).
TID_NUM_VALUES = 7
The main thread in the renderer. Used for all WebKit and V8 interaction. Tasks may be posted to this thread after CefRenderProcessHandler::OnWebKitInitialized but are not guaranteed to run before sub-process termination (sub-processes may be killed at any time without warning).
Trait Implementations§
Source§impl Clone for cef_thread_id_t
impl Clone for cef_thread_id_t
Source§fn clone(&self) -> cef_thread_id_t
fn clone(&self) -> cef_thread_id_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more