pub enum ConflictPolicy {
Fail,
UseExisting,
TerminateExisting,
}Expand description
Policy controlling what happens when [run()] is called with an
instance_id that already has a persisted snapshot.
Variants§
Fail
Return an error if the instance already exists (default).
UseExisting
Reuse the existing snapshot: return its current status without re-executing.
TerminateExisting
Terminate the existing instance (delete snapshot + clear signals) and start fresh.
Trait Implementations§
Source§impl Clone for ConflictPolicy
impl Clone for ConflictPolicy
Source§fn clone(&self) -> ConflictPolicy
fn clone(&self) -> ConflictPolicy
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 ConflictPolicy
impl Debug for ConflictPolicy
Source§impl Default for ConflictPolicy
impl Default for ConflictPolicy
Source§fn default() -> ConflictPolicy
fn default() -> ConflictPolicy
Returns the “default value” for a type. Read more
Source§impl Display for ConflictPolicy
impl Display for ConflictPolicy
Source§impl FromStr for ConflictPolicy
impl FromStr for ConflictPolicy
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<ConflictPolicy, <ConflictPolicy as FromStr>::Err>
fn from_str(s: &str) -> Result<ConflictPolicy, <ConflictPolicy as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for ConflictPolicy
impl PartialEq for ConflictPolicy
Source§impl TryFrom<&str> for ConflictPolicy
impl TryFrom<&str> for ConflictPolicy
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<ConflictPolicy, <ConflictPolicy as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<ConflictPolicy, <ConflictPolicy as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for ConflictPolicy
impl Eq for ConflictPolicy
impl StructuralPartialEq for ConflictPolicy
Auto Trait Implementations§
impl Freeze for ConflictPolicy
impl RefUnwindSafe for ConflictPolicy
impl Send for ConflictPolicy
impl Sync for ConflictPolicy
impl Unpin for ConflictPolicy
impl UnsafeUnpin for ConflictPolicy
impl UnwindSafe for ConflictPolicy
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.