pub struct Daemon {Show 15 fields
pub id: String,
pub links: Vec<ResourceRef>,
pub public_endpoints: Vec<PublicEndpoint>,
pub health_check: Option<HealthCheck>,
pub cluster: Option<String>,
pub permissions: String,
pub code: DaemonCode,
pub cpu: ResourceSpec,
pub memory: ResourceSpec,
pub pool: Option<String>,
pub command: Option<Vec<String>>,
pub stop_grace_period_seconds: Option<u32>,
pub runtime: Option<DaemonRuntime>,
pub environment: HashMap<String, String>,
pub commands_enabled: bool,
}Fields§
§id: String§links: Vec<ResourceRef>§public_endpoints: Vec<PublicEndpoint>Public endpoints exposed by the daemon.
health_check: Option<HealthCheck>HTTP health check for public daemon endpoint load balancers.
cluster: Option<String>ComputeCluster resource ID that this daemon runs on for managed cloud compute backends. Kubernetes and Local runtimes ignore this field.
permissions: String§code: DaemonCode§cpu: ResourceSpecCPU resource requirements for each daemon instance.
memory: ResourceSpecMemory resource requirements for each daemon instance.
pool: Option<String>Capacity group/pool to run on for backends that expose machine pools.
command: Option<Vec<String>>Command to override the image default.
stop_grace_period_seconds: Option<u32>Grace period in seconds for stopping daemon instances during updates, drains, and deletes.
When omitted, the runtime backend applies its default. Valid values are 1 second through 24 hours.
runtime: Option<DaemonRuntime>Optional backend runtime settings for trusted daemons.
These settings are intended for daemon-style infrastructure that must operate on the host. Backends that do not support a setting may reject it during provisioning.
environment: HashMap<String, String>§commands_enabled: boolImplementations§
Source§impl Daemon
impl Daemon
Sourcepub fn new(id: String) -> DaemonBuilder
pub fn new(id: String) -> DaemonBuilder
Create an instance of Daemon using the builder syntax
Source§impl Daemon
impl Daemon
pub const RESOURCE_TYPE: ResourceType
pub fn get_permissions(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Daemon
impl<'de> Deserialize<'de> for Daemon
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>,
impl Eq for Daemon
Source§impl ResourceDefinition for Daemon
impl ResourceDefinition for Daemon
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Source§fn get_dependencies(&self) -> Vec<ResourceRef>
fn get_dependencies(&self) -> Vec<ResourceRef>
Source§fn get_permissions(&self) -> Option<&str>
fn get_permissions(&self) -> Option<&str>
Source§fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Source§fn box_clone(&self) -> Box<dyn ResourceDefinition>
fn box_clone(&self) -> Box<dyn ResourceDefinition>
Source§fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
Source§fn to_json_value(&self) -> Result<Value>
fn to_json_value(&self) -> Result<Value>
impl StructuralPartialEq for Daemon
Auto Trait Implementations§
impl Freeze for Daemon
impl RefUnwindSafe for Daemon
impl Send for Daemon
impl Sync for Daemon
impl Unpin for Daemon
impl UnsafeUnpin for Daemon
impl UnwindSafe for Daemon
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
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,
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
key and return true if they are equal.