pub enum DeploymentMode {
SingleNode,
Cluster,
Cloudflare,
}Expand description
Which deployment mode a boatramp instance runs in.
This is config (uniform across targets), not a backend choice: the same commands and manifests apply in every mode, and only the host-side coordinator/backends are selected from it.
Variants§
SingleNode
The default single binary: zero external dependencies, in-process everything.
Cluster
N boatramp nodes coordinating among themselves via embedded Raft.
Cloudflare
boatramp’s cluster mode running on Cloudflare Containers behind an edge
Worker (same Raft-leader coordinator as Cluster).
Implementations§
Source§impl DeploymentMode
impl DeploymentMode
Sourcepub fn coordinator(self) -> &'static str
pub fn coordinator(self) -> &'static str
The single-writer coordinator this mode provides — the one piece that differs across modes. Cloudflare runs the cluster on Containers, so it shares the cluster’s coordinator.
Sourcepub fn needs_managed_deployment(self) -> bool
pub fn needs_managed_deployment(self) -> bool
Whether this mode needs boatramp’s managed deployment layer — a
platform-specific package + orchestration beyond just running the binary.
Single-node and self-hosted cluster are run by starting the boatramp
binary directly; Cloudflare additionally
needs the container image, the edge Worker, and the CF binding/topology
generation (boatramp deploy --target cloudflare). The boatramp binary
itself runs unchanged in either case.
Trait Implementations§
Source§impl Clone for DeploymentMode
impl Clone for DeploymentMode
Source§fn clone(&self) -> DeploymentMode
fn clone(&self) -> DeploymentMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DeploymentMode
Source§impl Debug for DeploymentMode
impl Debug for DeploymentMode
Source§impl Default for DeploymentMode
impl Default for DeploymentMode
Source§fn default() -> DeploymentMode
fn default() -> DeploymentMode
Source§impl<'de> Deserialize<'de> for DeploymentMode
impl<'de> Deserialize<'de> for DeploymentMode
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>,
Source§impl Display for DeploymentMode
impl Display for DeploymentMode
impl Eq for DeploymentMode
Source§impl FromStr for DeploymentMode
impl FromStr for DeploymentMode
Source§impl PartialEq for DeploymentMode
impl PartialEq for DeploymentMode
Source§impl Serialize for DeploymentMode
impl Serialize for DeploymentMode
impl StructuralPartialEq for DeploymentMode
Auto Trait Implementations§
impl Freeze for DeploymentMode
impl RefUnwindSafe for DeploymentMode
impl Send for DeploymentMode
impl Sync for DeploymentMode
impl Unpin for DeploymentMode
impl UnsafeUnpin for DeploymentMode
impl UnwindSafe for DeploymentMode
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,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.