pub struct AutoRefine {
pub on: bool,
/* private fields */
}Expand description
Whether automatic refinement is on for a session (refine.auto, default on), and when it last proposed.
Fields§
§on: boolImplementations§
Source§impl AutoRefine
impl AutoRefine
Sourcepub fn new(settings: &Value, env: Option<&str>) -> AutoRefine
pub fn new(settings: &Value, env: Option<&str>) -> AutoRefine
From the merged settings (refine.auto) and ULTRON_AUTO_REFINE (off, 0, false: off).
Sourcepub fn start_pass(&self) -> bool
pub fn start_pass(&self) -> bool
Whether a proposal pass may start now (on, and past the cooldown); starting one restarts the cooldown.
Auto Trait Implementations§
impl !Freeze for AutoRefine
impl Forget for AutoRefine
impl Move for AutoRefine
impl RefUnwindSafe for AutoRefine
impl Send for AutoRefine
impl Sync for AutoRefine
impl Unpin for AutoRefine
impl UnsafeUnpin for AutoRefine
impl UnwindSafe for AutoRefine
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