pub struct ThreadOptions {
pub editing: bool,
pub indexing: bool,
}
Expand description
A set of options that determines which types of threads should use background priority.
Fields§
§editing: bool
Indicates whether threads creating for editing purposes should use background priority.
indexing: bool
Indicates whether threads creating for indexing purposes should use background priority.
Trait Implementations§
Source§impl Clone for ThreadOptions
impl Clone for ThreadOptions
Source§fn clone(&self) -> ThreadOptions
fn clone(&self) -> ThreadOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ThreadOptions
impl Debug for ThreadOptions
Source§impl Default for ThreadOptions
impl Default for ThreadOptions
Source§fn default() -> ThreadOptions
fn default() -> ThreadOptions
Returns the “default value” for a type. Read more
Source§impl From<ThreadOptions> for CXGlobalOptFlags
impl From<ThreadOptions> for CXGlobalOptFlags
Source§fn from(options: ThreadOptions) -> CXGlobalOptFlags
fn from(options: ThreadOptions) -> CXGlobalOptFlags
Converts to this type from the input type.
Source§impl From<i32> for ThreadOptions
impl From<i32> for ThreadOptions
Source§fn from(flags: CXGlobalOptFlags) -> ThreadOptions
fn from(flags: CXGlobalOptFlags) -> ThreadOptions
Converts to this type from the input type.
Source§impl Hash for ThreadOptions
impl Hash for ThreadOptions
Source§impl PartialEq for ThreadOptions
impl PartialEq for ThreadOptions
impl Copy for ThreadOptions
impl Eq for ThreadOptions
impl StructuralPartialEq for ThreadOptions
Auto Trait Implementations§
impl Freeze for ThreadOptions
impl RefUnwindSafe for ThreadOptions
impl Send for ThreadOptions
impl Sync for ThreadOptions
impl Unpin for ThreadOptions
impl UnwindSafe for ThreadOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more