#[non_exhaustive]pub enum OpenRunPolicy {
UseExisting,
Fail,
}Expand description
What an open run means for the intake (the start’s duplicate_policy).
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.
UseExisting
Signal the open run (use-existing, the default). Its input,
deadlines and history are unchanged.
Fail
Refuse an open run with instance_already_started (fail).
Implementations§
Trait Implementations§
Source§impl Clone for OpenRunPolicy
impl Clone for OpenRunPolicy
Source§fn clone(&self) -> OpenRunPolicy
fn clone(&self) -> OpenRunPolicy
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 OpenRunPolicy
impl Debug for OpenRunPolicy
Source§impl Default for OpenRunPolicy
impl Default for OpenRunPolicy
Source§fn default() -> OpenRunPolicy
fn default() -> OpenRunPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for OpenRunPolicy
impl PartialEq for OpenRunPolicy
impl Copy for OpenRunPolicy
impl Eq for OpenRunPolicy
impl StructuralPartialEq for OpenRunPolicy
Auto Trait Implementations§
impl Freeze for OpenRunPolicy
impl RefUnwindSafe for OpenRunPolicy
impl Send for OpenRunPolicy
impl Sync for OpenRunPolicy
impl Unpin for OpenRunPolicy
impl UnwindSafe for OpenRunPolicy
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