Crate containerflare

Crate containerflare 

Source
Expand description

Containerflare runtime crate.

This crate exposes an Axum-friendly runtime that plugs into Cloudflare’s Containers platform, letting you write idiomatic Rust handlers that still have access to the surrounding worker container capabilities.

Re-exports§

pub use crate::config::RuntimeConfig;
pub use crate::config::RuntimeConfigBuilder;
pub use crate::context::ContainerContext;
pub use crate::context::RequestMetadata;
pub use crate::context::RequestMetadataPlatform;
pub use crate::context::TraceContext;
pub use crate::error::ContainerflareError;
pub use crate::error::Result;
pub use crate::platform::CloudRunPlatform;
pub use crate::platform::CloudflarePlatform;
pub use crate::platform::RuntimePlatform;
pub use crate::runtime::ContainerflareRuntime;
pub use crate::runtime::run;
pub use crate::runtime::serve;

Modules§

config
context
error
platform
runtime

Structs§

CommandClient
High-level client that talks to Cloudflare’s host-managed command channel (Cloud Run does not expose one).
CommandRequest
JSON payload describing a command issued to the host.
CommandResponse
Response returned by the host for a previously issued command.

Enums§

CommandEndpoint
Describes how the container establishes the host command channel transport.
CommandError
Errors emitted by CommandClient when transport or payload handling fails.