pub enum ShutdownSemantics {
Service,
Command,
}Expand description
Whether an element terminates by explicit signal or by self-completion.
Reducto Rule 1 uses this to pick between Teardown and Await
steps. Default is Service.
Variants§
Service
Long-running; requires an explicit stop signal.
Command
Self-terminating; awaited rather than stopped.
Trait Implementations§
Source§impl Clone for ShutdownSemantics
impl Clone for ShutdownSemantics
Source§fn clone(&self) -> ShutdownSemantics
fn clone(&self) -> ShutdownSemantics
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 ShutdownSemantics
impl Debug for ShutdownSemantics
Source§impl Default for ShutdownSemantics
impl Default for ShutdownSemantics
Source§fn default() -> ShutdownSemantics
fn default() -> ShutdownSemantics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShutdownSemantics
impl<'de> Deserialize<'de> for ShutdownSemantics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ShutdownSemantics
impl Hash for ShutdownSemantics
Source§impl PartialEq for ShutdownSemantics
impl PartialEq for ShutdownSemantics
Source§impl Serialize for ShutdownSemantics
impl Serialize for ShutdownSemantics
impl Copy for ShutdownSemantics
impl Eq for ShutdownSemantics
impl StructuralPartialEq for ShutdownSemantics
Auto Trait Implementations§
impl Freeze for ShutdownSemantics
impl RefUnwindSafe for ShutdownSemantics
impl Send for ShutdownSemantics
impl Sync for ShutdownSemantics
impl Unpin for ShutdownSemantics
impl UnsafeUnpin for ShutdownSemantics
impl UnwindSafe for ShutdownSemantics
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
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.