pub enum Probe {
Url(String),
Port {
port: u16,
host: Option<String>,
},
Command {
command: String,
env: BTreeMap<OsString, OsString>,
},
LogMatches(Vec<String>),
Signal,
}Expand description
What tells that a task is ready.
Variants§
Url(String)
A GET answered with a status from 200 to 403.
Port
A TCP connection, to loopback unless a host is named.
Command
A shell command at the workspace root exiting with 0, run with the
environment the task’s commands run with and its options as JSON in
NX_TASK_OPTIONS, as in Nx 24.
LogMatches(Vec<String>)
Every one of these appearing in the task’s output.
Signal
The task reporting it is ready, through the socket qk names to it in
NX_READY_SIGNAL_SOCKET, as @nx/devkit’s signalTaskReady does.
Trait Implementations§
impl Eq for Probe
impl StructuralPartialEq for Probe
Auto Trait Implementations§
impl Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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.