pub enum WorkerBinding {
Lambda(LambdaWorkerBinding),
CloudRun(CloudRunWorkerBinding),
ContainerApp(ContainerAppWorkerBinding),
Kubernetes(KubernetesWorkerBinding),
Local(LocalWorkerBinding),
}Expand description
Represents a worker binding for cross-worker communication
Variants§
Lambda(LambdaWorkerBinding)
AWS Lambda binding
CloudRun(CloudRunWorkerBinding)
GCP Cloud Run binding
ContainerApp(ContainerAppWorkerBinding)
Azure Container Apps binding
Kubernetes(KubernetesWorkerBinding)
Kubernetes worker binding
Local(LocalWorkerBinding)
Local worker binding
Implementations§
Source§impl WorkerBinding
impl WorkerBinding
Sourcepub fn lambda(
worker_name: impl Into<BindingValue<String>>,
region: impl Into<BindingValue<String>>,
) -> Self
pub fn lambda( worker_name: impl Into<BindingValue<String>>, region: impl Into<BindingValue<String>>, ) -> Self
Creates an AWS Lambda worker binding
Sourcepub fn lambda_with_url(
worker_name: impl Into<BindingValue<String>>,
region: impl Into<BindingValue<String>>,
url: impl Into<BindingValue<String>>,
) -> Self
pub fn lambda_with_url( worker_name: impl Into<BindingValue<String>>, region: impl Into<BindingValue<String>>, url: impl Into<BindingValue<String>>, ) -> Self
Creates an AWS Lambda worker binding with public URL
Sourcepub fn cloud_run(
project_id: impl Into<BindingValue<String>>,
service_name: impl Into<BindingValue<String>>,
location: impl Into<BindingValue<String>>,
private_url: impl Into<BindingValue<String>>,
) -> Self
pub fn cloud_run( project_id: impl Into<BindingValue<String>>, service_name: impl Into<BindingValue<String>>, location: impl Into<BindingValue<String>>, private_url: impl Into<BindingValue<String>>, ) -> Self
Creates a GCP Cloud Run worker binding
Sourcepub fn cloud_run_with_public_url(
project_id: impl Into<BindingValue<String>>,
service_name: impl Into<BindingValue<String>>,
location: impl Into<BindingValue<String>>,
private_url: impl Into<BindingValue<String>>,
public_url: impl Into<BindingValue<String>>,
) -> Self
pub fn cloud_run_with_public_url( project_id: impl Into<BindingValue<String>>, service_name: impl Into<BindingValue<String>>, location: impl Into<BindingValue<String>>, private_url: impl Into<BindingValue<String>>, public_url: impl Into<BindingValue<String>>, ) -> Self
Creates a GCP Cloud Run worker binding with public URL
Sourcepub fn container_app(
subscription_id: impl Into<BindingValue<String>>,
resource_group_name: impl Into<BindingValue<String>>,
container_app_name: impl Into<BindingValue<String>>,
private_url: impl Into<BindingValue<String>>,
) -> Self
pub fn container_app( subscription_id: impl Into<BindingValue<String>>, resource_group_name: impl Into<BindingValue<String>>, container_app_name: impl Into<BindingValue<String>>, private_url: impl Into<BindingValue<String>>, ) -> Self
Creates an Azure Container Apps worker binding
Sourcepub fn container_app_with_public_url(
subscription_id: impl Into<BindingValue<String>>,
resource_group_name: impl Into<BindingValue<String>>,
container_app_name: impl Into<BindingValue<String>>,
private_url: impl Into<BindingValue<String>>,
public_url: impl Into<BindingValue<String>>,
) -> Self
pub fn container_app_with_public_url( subscription_id: impl Into<BindingValue<String>>, resource_group_name: impl Into<BindingValue<String>>, container_app_name: impl Into<BindingValue<String>>, private_url: impl Into<BindingValue<String>>, public_url: impl Into<BindingValue<String>>, ) -> Self
Creates an Azure Container Apps worker binding with public URL
Sourcepub fn local(worker_url: impl Into<BindingValue<String>>) -> Self
pub fn local(worker_url: impl Into<BindingValue<String>>) -> Self
Creates a local worker binding
Sourcepub fn kubernetes(
name: impl Into<BindingValue<String>>,
namespace: impl Into<BindingValue<String>>,
service_name: impl Into<BindingValue<String>>,
service_port: impl Into<BindingValue<u16>>,
) -> Self
pub fn kubernetes( name: impl Into<BindingValue<String>>, namespace: impl Into<BindingValue<String>>, service_name: impl Into<BindingValue<String>>, service_port: impl Into<BindingValue<u16>>, ) -> Self
Creates a Kubernetes worker binding
Sourcepub fn kubernetes_with_public_url(
name: impl Into<BindingValue<String>>,
namespace: impl Into<BindingValue<String>>,
service_name: impl Into<BindingValue<String>>,
service_port: impl Into<BindingValue<u16>>,
public_url: impl Into<BindingValue<String>>,
) -> Self
pub fn kubernetes_with_public_url( name: impl Into<BindingValue<String>>, namespace: impl Into<BindingValue<String>>, service_name: impl Into<BindingValue<String>>, service_port: impl Into<BindingValue<u16>>, public_url: impl Into<BindingValue<String>>, ) -> Self
Creates a Kubernetes worker binding with public URL
Sourcepub fn get_public_url(&self) -> Option<&BindingValue<String>>
pub fn get_public_url(&self) -> Option<&BindingValue<String>>
Gets the public URL if available for any platform
Trait Implementations§
Source§impl Clone for WorkerBinding
impl Clone for WorkerBinding
Source§fn clone(&self) -> WorkerBinding
fn clone(&self) -> WorkerBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerBinding
impl Debug for WorkerBinding
Source§impl<'de> Deserialize<'de> for WorkerBinding
impl<'de> Deserialize<'de> for WorkerBinding
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkerBinding
impl PartialEq for WorkerBinding
Source§fn eq(&self, other: &WorkerBinding) -> bool
fn eq(&self, other: &WorkerBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkerBinding
impl Serialize for WorkerBinding
impl Eq for WorkerBinding
impl StructuralPartialEq for WorkerBinding
Auto Trait Implementations§
impl Freeze for WorkerBinding
impl RefUnwindSafe for WorkerBinding
impl Send for WorkerBinding
impl Sync for WorkerBinding
impl Unpin for WorkerBinding
impl UnsafeUnpin for WorkerBinding
impl UnwindSafe for WorkerBinding
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.