Enum worker_plus::Fetch

source ·
pub enum Fetch {
    Url(Url),
    Request(WorkerRequest),
}
Expand description

Construct a Fetch call from a URL string or a Request object. Call its send method to execute the request.

Variants§

§

Url(Url)

§

Request(WorkerRequest)

Implementations§

Execute a Fetch call and receive a Response.

Execute a Fetch call and receive a Response.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.