#[non_exhaustive]pub enum ClosedRunPolicy {
Reject,
StartNewRun,
}Expand description
What a closed current run means for the intake.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Reject
Refuse with run_not_active (the default). A closed run is never
reopened.
StartNewRun
Start a fresh run after the closed one with this request’s input and timeouts. The closed run keeps its outcome and history.
Implementations§
Trait Implementations§
Source§impl Clone for ClosedRunPolicy
impl Clone for ClosedRunPolicy
Source§fn clone(&self) -> ClosedRunPolicy
fn clone(&self) -> ClosedRunPolicy
Returns a copy 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 ClosedRunPolicy
impl Debug for ClosedRunPolicy
Source§impl Default for ClosedRunPolicy
impl Default for ClosedRunPolicy
Source§fn default() -> ClosedRunPolicy
fn default() -> ClosedRunPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClosedRunPolicy
impl PartialEq for ClosedRunPolicy
impl Copy for ClosedRunPolicy
impl Eq for ClosedRunPolicy
impl StructuralPartialEq for ClosedRunPolicy
Auto Trait Implementations§
impl Freeze for ClosedRunPolicy
impl RefUnwindSafe for ClosedRunPolicy
impl Send for ClosedRunPolicy
impl Sync for ClosedRunPolicy
impl Unpin for ClosedRunPolicy
impl UnwindSafe for ClosedRunPolicy
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