Enum worker::Error [−][src]
#[non_exhaustive]
pub enum Error {
BadEncoding,
BodyUsed,
Json((String, u16)),
JsError(String),
Internal(JsValue),
BindingError(String),
RouteInsertError(InsertError),
RouteNoDataError,
RustError(String),
SerdeJsonError(Error),
}
Expand description
All possible Error variants that might be encountered while working with a Worker.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JsError(String)
Tuple Fields of JsError
0: String
Internal(JsValue)
Tuple Fields of Internal
0: JsValue
BindingError(String)
Tuple Fields of BindingError
0: String
RouteInsertError(InsertError)
Tuple Fields of RouteInsertError
0: InsertError
RustError(String)
Tuple Fields of RustError
0: String
SerdeJsonError(Error)
Tuple Fields of SerdeJsonError
0: Error
Trait Implementations
Performs the conversion.
Performs the conversion.