pub enum HandlerError {
Rendering(String),
Invariant(String),
MissingFragment(String),
MissingData(String),
TypeError(String),
Protocol(ProtocolError),
Evaluation(String),
Io(Error),
Writer(String),
PluginData(String),
ClientDisconnected,
StreamTimeout,
}Expand description
Error types for the WebUI handler.
Variants§
Rendering(String)
Invariant(String)
MissingFragment(String)
MissingData(String)
TypeError(String)
Protocol(ProtocolError)
Evaluation(String)
Io(Error)
Writer(String)
PluginData(String)
ClientDisconnected
The HTTP client disconnected before the render completed.
Streaming ResponseWriter implementations return this from
write() once their channel/socket is closed, so the handler
can abort the render rather than do CPU work that has nowhere
to go. Allocation-free (the variant carries no payload).
StreamTimeout
The streaming writer’s flush exceeded its configured deadline.
Indicates a slow/unresponsive consumer (slow-loris client,
stuck proxy, etc.). The render thread is freed; downstream
telemetry should distinguish this from ClientDisconnected
so ops can alert on slow-client attacks.
Trait Implementations§
Source§impl Debug for HandlerError
impl Debug for HandlerError
Source§impl Display for HandlerError
impl Display for HandlerError
Source§impl Error for HandlerError
impl Error for HandlerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for HandlerError
impl From<Error> for HandlerError
Source§impl From<ProtocolError> for HandlerError
impl From<ProtocolError> for HandlerError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HandlerError
impl !RefUnwindSafe for HandlerError
impl Send for HandlerError
impl Sync for HandlerError
impl Unpin for HandlerError
impl UnsafeUnpin for HandlerError
impl !UnwindSafe for HandlerError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more