Trait EnvBinding

Source
pub trait EnvBinding: Sized + JsCast {
    const TYPE_NAME: &'static str;

    // Provided method
    fn get(val: JsValue) -> Result<Self> { ... }
}

Required Associated Constants§

Source

const TYPE_NAME: &'static str

Provided Methods§

Source

fn get(val: JsValue) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EnvBinding for D1Database

Source§

const TYPE_NAME: &'static str = "D1Database"

Source§

impl EnvBinding for ObjectNamespace

Source§

const TYPE_NAME: &'static str = "DurableObjectNamespace"

Source§

impl EnvBinding for Ai

Source§

const TYPE_NAME: &'static str = "Ai"

Source§

impl EnvBinding for Bucket

Source§

const TYPE_NAME: &'static str = "R2Bucket"

Source§

impl EnvBinding for DynamicDispatcher

Source§

const TYPE_NAME: &'static str = "DynamicDispatcher"

Source§

impl EnvBinding for Fetcher

Source§

const TYPE_NAME: &'static str = "Fetcher"

Source§

impl EnvBinding for Hyperdrive

Source§

const TYPE_NAME: &'static str = "Hyperdrive"

Source§

impl EnvBinding for Queue

Source§

const TYPE_NAME: &'static str = "WorkerQueue"

Source§

impl EnvBinding for RateLimiter

Source§

const TYPE_NAME: &'static str = "RateLimiter"

Source§

impl EnvBinding for StringBinding

Source§

const TYPE_NAME: &'static str = "String"

Source§

impl EnvBinding for WorkerVersionMetadata

Source§

const TYPE_NAME: &'static str = "Object"