[go: up one dir, main page]

worker

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>

Object Safety§

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 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"