Trait worker::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>

Implementors§

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"