FetchResponse

Type Alias FetchResponse 

Source
pub type FetchResponse = Result<Response, Error>;
Expand description

This type specifies what the Fetch::fetch() API returns.

Aliased Type§

pub enum FetchResponse {
    Ok(Response),
    Err(Error),
}

Variants§

§1.0.0

Ok(Response)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl From<Error> for FetchResponse

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<InternalError> for FetchResponse

Source§

fn from(value: InternalError) -> Self

Converts to this type from the input type.