pub struct ThreadLocalParams;Expand description
Hold ExecutionProfile on the current thread.
The default ExecutionProfile is the following:
use regexsolver::execution_profile::ExecutionProfile;
ExecutionProfile {
max_number_of_states: 8192,
start_execution_time: None,
execution_timeout: 1500,
max_number_of_terms: 50,
};Implementations§
Source§impl ThreadLocalParams
impl ThreadLocalParams
Sourcepub fn init_profile(profile: &ExecutionProfile)
pub fn init_profile(profile: &ExecutionProfile)
Store on the current thread ExecutionProfile.
pub fn get_max_number_of_states() -> usize
pub fn get_start_execution_time() -> Option<SystemTime>
pub fn get_execution_timeout() -> u128
pub fn get_max_number_of_terms() -> usize
Sourcepub fn get_execution_profile() -> ExecutionProfile
pub fn get_execution_profile() -> ExecutionProfile
Return the ExecutionProfile stored on the current thread.
Auto Trait Implementations§
impl Freeze for ThreadLocalParams
impl RefUnwindSafe for ThreadLocalParams
impl Send for ThreadLocalParams
impl Sync for ThreadLocalParams
impl Unpin for ThreadLocalParams
impl UnsafeUnpin for ThreadLocalParams
impl UnwindSafe for ThreadLocalParams
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