[go: up one dir, main page]

Trait worker::FromRequest

source ·
pub trait FromRequest: Sized {
    // Required method
    fn from_raw(request: Request) -> Result<Self, impl Into<Box<dyn Error>>>;
}
Expand description

A trait used to represent any viable Request type that can be used in the Worker. The only requirement is that it be convertible from a web_sys::Request.

Required Methods§

source

fn from_raw(request: Request) -> Result<Self, impl Into<Box<dyn Error>>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromRequest for Request

source§

fn from_raw(request: Request) -> Result<Self, impl Into<Box<dyn Error>>>

Implementors§