pub enum Runtime {
Node,
Python,
Go,
Rust,
Unknown,
}Expand description
A detected upstream-app runtime. Drives the default app port, the --wrap start command, and
the base image in the generated Dockerfile.
Variants§
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn detect(entries: &[String]) -> Runtime
pub fn detect(entries: &[String]) -> Runtime
Detect the runtime from the set of file names present in the project root. Priority order (most-common-for-a-vibe-coded-app first) resolves a repo that carries more than one marker.
pub fn label(self) -> &'static str
Sourcepub fn default_app_port(self) -> u16
pub fn default_app_port(self) -> u16
The port the wrapped app is told to listen on (APP_PORT). EdgeGuard takes the public
port and proxies to this one on localhost.
Sourcepub fn default_start_cmd(self) -> &'static str
pub fn default_start_cmd(self) -> &'static str
The default --wrap start command for this runtime (a placeholder the user adjusts to
their actual entrypoint).
Trait Implementations§
impl Copy for Runtime
impl Eq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.