pub enum TestingProbe {
Present {
discovered: Value,
},
Absent,
Unlicensed,
AuthGated {
status: u16,
},
LazyCompile {
body: String,
},
}Expand description
The TESTING bundle’s presence discrimination (QUICK-p0g) — the
RouteProbe twin for the testing/ URL space. A SEPARATE enum
on purpose: RouteProbe’s variant set is pinned by the webdev
tests and the two route families answer different shapes (the
testing routes have no {ok, data|error} envelope and no
routeVersion handshake).
WHY a raw-status path exists at all: [super::classify::classify]
maps 404 → NotFound and collapses 405, 500 and 501 into
Internal (exit 1, no status preserved). Running the presence
check through it would make “the testing bundle was never
deployed” (a target-state refusal, exit 6) indistinguishable from
a CLI bug — so the status code IS the answer here, the
super::GatewayApi::webdev_route_probe precedent.
Variants§
Present
2xx — the bundle answers; the parsed discover body rides along so the probe doubles as the discover round trip.
Absent
404 | 405 | 501 — the bundle is not deployed in this project. All three are absent markers: 405 is the live-proven 8.3 WebDev marker for a missing route folder, 404 appears when the project itself is absent on some paths, and 501 is what a route whose methods failed to register answers.
Unlicensed
402 — the WebDev module is installed but unlicensed.
AuthGated
401 | 403 — something answers but rejects the credential.
LazyCompile
500 — the first-touch lazy-compile blowup (a freshly deployed
route can answer 500 on its FIRST request while WebDev
compiles the module; live-pinned in actions::adopt). The
body rides along so a SECOND 500 can be reported honestly.
Trait Implementations§
Source§impl Clone for TestingProbe
impl Clone for TestingProbe
Source§impl Debug for TestingProbe
impl Debug for TestingProbe
impl Eq for TestingProbe
Source§impl PartialEq for TestingProbe
impl PartialEq for TestingProbe
impl StructuralPartialEq for TestingProbe
Auto Trait Implementations§
impl Freeze for TestingProbe
impl RefUnwindSafe for TestingProbe
impl Send for TestingProbe
impl Sync for TestingProbe
impl Unpin for TestingProbe
impl UnsafeUnpin for TestingProbe
impl UnwindSafe for TestingProbe
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
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
key and return true if they are equal.