pub enum WatchAction {
Sync,
Rebuild,
Restart,
SyncAndRestart,
SyncAndExec,
}Expand description
Action triggered by a develop.watch rule: sync, rebuild, restart, sync+restart, or sync+exec.
Variants§
Sync
sync — copy changed files from path into the container at target.
Rebuild
rebuild — rebuild the service image and recreate the container.
Restart
restart — restart the running container without rebuilding.
SyncAndRestart
sync+restart — sync changed files, then restart the container.
SyncAndExec
sync+exec — sync changed files, then run the rule’s exec command in the container.
Implementations§
Source§impl WatchAction
impl WatchAction
Sourcepub fn as_token(&self) -> &'static str
pub fn as_token(&self) -> &'static str
The lowercase compose token for this action (the inverse of the custom
Deserialize). Kept in sync with the parser so config output
round-trips back through podup.
Sourcepub fn requires_target(&self) -> bool
pub fn requires_target(&self) -> bool
True for actions whose semantics require a target (the sync family).
rebuild/restart operate on the whole container and need no target.
Trait Implementations§
Source§impl Clone for WatchAction
impl Clone for WatchAction
Source§fn clone(&self) -> WatchAction
fn clone(&self) -> WatchAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WatchAction
impl Debug for WatchAction
Source§impl Default for WatchAction
impl Default for WatchAction
Source§fn default() -> WatchAction
fn default() -> WatchAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WatchAction
impl<'de> Deserialize<'de> for WatchAction
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WatchAction
Source§impl PartialEq for WatchAction
impl PartialEq for WatchAction
Source§impl Serialize for WatchAction
impl Serialize for WatchAction
impl StructuralPartialEq for WatchAction
Auto Trait Implementations§
impl Freeze for WatchAction
impl RefUnwindSafe for WatchAction
impl Send for WatchAction
impl Sync for WatchAction
impl Unpin for WatchAction
impl UnsafeUnpin for WatchAction
impl UnwindSafe for WatchAction
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.