Enum viceroy_lib::error::Error [−][src]
pub enum Error {
Show 26 variants
BufferLengthError {
buf: &'static str,
len: &'static str,
},
FatalError(String),
FileFormat,
FastlyConfig(FastlyConfigError),
BackendUrl(Url),
GuestError(GuestError),
HandleError(HandleError),
HyperError(Error),
Infallible(Infallible),
InvalidArgument,
InvalidHeaderName(InvalidHeaderName),
InvalidHeaderValue(InvalidHeaderValue),
InvalidMethod(InvalidMethod),
InvalidStatusCode(InvalidStatusCode),
InvalidUri(InvalidUri),
IoError(Error),
Other(Error),
Unsupported {
msg: &'static str,
},
DownstreamRespSending,
StreamingChunkSend,
UnknownBackend(String),
DictionaryError(DictionaryError),
Utf8Expected(Utf8Error),
AbiVersionMismatch,
DownstreamRequestError(DownstreamRequestError),
NotAvailable(&'static str),
}
Variants
Thrown by hostcalls when a buffer is larger than its *_len
limit.
FatalError(String)
Error when viceroy has encountered a fatal error and the underlying wasmtime instance must be terminated with a Trap.
Tuple Fields of FatalError
0: String
Error when viceroy has been given an invalid file.
FastlyConfig(FastlyConfigError)
Tuple Fields of FastlyConfig
BackendUrl(Url)
Tuple Fields of BackendUrl
0: Url
GuestError(GuestError)
An error from guest-provided arguments to a hostcall. These errors may be created
automatically by the Wiggle-generated glue code that converts parameters from their ABI
representation into richer Rust types, or by fallible methods of GuestPtr
in the
wiggle_abi trait implementations.
Tuple Fields of GuestError
0: GuestError
HandleError(HandleError)
Tuple Fields of HandleError
0: HandleError
HyperError(Error)
Tuple Fields of HyperError
0: Error
Infallible(Infallible)
Tuple Fields of Infallible
0: Infallible
Error when an invalid argument is supplied to a hostcall.
InvalidHeaderName(InvalidHeaderName)
Tuple Fields of InvalidHeaderName
InvalidHeaderValue(InvalidHeaderValue)
Tuple Fields of InvalidHeaderValue
InvalidMethod(InvalidMethod)
Tuple Fields of InvalidMethod
InvalidStatusCode(InvalidStatusCode)
Tuple Fields of InvalidStatusCode
InvalidUri(InvalidUri)
Tuple Fields of InvalidUri
0: InvalidUri
IoError(Error)
Tuple Fields of IoError
0: Error
Other(Error)
Tuple Fields of Other
0: Error
Fields of Unsupported
msg: &'static str
Downstream response is already sending.
UnknownBackend(String)
Tuple Fields of UnknownBackend
0: String
Utf8Expected(Utf8Error)
Tuple Fields of Utf8Expected
0: Utf8Error
DownstreamRequestError(DownstreamRequestError)
Tuple Fields of DownstreamRequestError
NotAvailable(&'static str)
Tuple Fields of NotAvailable
0: &'static str
Implementations
Convert to an error code representation suitable for passing across the ABI boundary.
For more information about specific error codes see fastly_shared::FastlyStatus
,
as well as the witx
interface definition located in wasm_abi/typenames.witx
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
Query the “status” flags for the self
file descriptor.
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
Create a new SetFdFlags
value for use with set_fd_flags
. Read more
pub fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error> where
T: AsFilelike,
pub fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error> where
T: AsFilelike,
Set the “status” flags for the self
file descriptor. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more