96 lines
18 KiB
HTML
96 lines
18 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `error` mod in crate `actix_http`."><meta name="keywords" content="rust, rustlang, rust-lang, error"><title>actix_http::error - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../actix_http/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Module error</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../index.html'>actix_http</a></p><script>window.sidebarCurrent = {name: 'error', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../src/actix_http/error.rs.html#1-1209' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../index.html'>actix_http</a>::<wbr><a class="mod" href=''>error</a></span></h1><div class='docblock'><p>Error and Result module</p>
|
||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||
<table><tr class='module-item'><td><a class="struct" href="struct.Error.html" title='actix_http::error::Error struct'>Error</a></td><td class='docblock-short'><p>General purpose actix web error.</p>
|
||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.InternalError.html" title='actix_http::error::InternalError struct'>InternalError</a></td><td class='docblock-short'><p>Helper type that can wrap any error and generate custom response.</p>
|
||
</td></tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||
<table><tr class='module-item'><td><a class="enum" href="enum.BlockingError.html" title='actix_http::error::BlockingError enum'>BlockingError</a></td><td class='docblock-short'><p>Blocking operation execution error</p>
|
||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.ContentTypeError.html" title='actix_http::error::ContentTypeError enum'>ContentTypeError</a></td><td class='docblock-short'><p>A set of error that can occure during parsing content type</p>
|
||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.CookieParseError.html" title='actix_http::error::CookieParseError enum'>CookieParseError</a></td><td class='docblock-short'><p>Enum corresponding to a parsing error.</p>
|
||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.DispatchError.html" title='actix_http::error::DispatchError enum'>DispatchError</a></td><td class='docblock-short'><p>A set of errors that can occur during dispatching http requests</p>
|
||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.ParseError.html" title='actix_http::error::ParseError enum'>ParseError</a></td><td class='docblock-short'><p>A set of errors that can occur during parsing HTTP streams</p>
|
||
</td></tr><tr class='module-item'><td><a class="enum" href="enum.PayloadError.html" title='actix_http::error::PayloadError enum'>PayloadError</a></td><td class='docblock-short'><p>A set of errors that can occur during payload parsing</p>
|
||
</td></tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||
<table><tr class='module-item'><td><a class="trait" href="trait.ResponseError.html" title='actix_http::error::ResponseError trait'>ResponseError</a></td><td class='docblock-short'><p>Error that can be converted to <code>Response</code></p>
|
||
</td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||
<table><tr class='module-item'><td><a class="fn" href="fn.ErrorBadGateway.html" title='actix_http::error::ErrorBadGateway fn'>ErrorBadGateway</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>BAD GATEWAY</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorBadRequest.html" title='actix_http::error::ErrorBadRequest fn'>ErrorBadRequest</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>BAD
|
||
REQUEST</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorConflict.html" title='actix_http::error::ErrorConflict fn'>ErrorConflict</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>CONFLICT</em>
|
||
response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorExpectationFailed.html" title='actix_http::error::ErrorExpectationFailed fn'>ErrorExpectationFailed</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>EXPECTATION FAILED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorFailedDependency.html" title='actix_http::error::ErrorFailedDependency fn'>ErrorFailedDependency</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>FAILED DEPENDENCY</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorForbidden.html" title='actix_http::error::ErrorForbidden fn'>ErrorForbidden</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>FORBIDDEN</em>
|
||
response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorGatewayTimeout.html" title='actix_http::error::ErrorGatewayTimeout fn'>ErrorGatewayTimeout</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>GATEWAY TIMEOUT</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorGone.html" title='actix_http::error::ErrorGone fn'>ErrorGone</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>GONE</em>
|
||
response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorHttpVersionNotSupported.html" title='actix_http::error::ErrorHttpVersionNotSupported fn'>ErrorHttpVersionNotSupported</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>HTTP VERSION NOT SUPPORTED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorImATeapot.html" title='actix_http::error::ErrorImATeapot fn'>ErrorImATeapot</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>IM A TEAPOT</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorInsufficientStorage.html" title='actix_http::error::ErrorInsufficientStorage fn'>ErrorInsufficientStorage</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>INSUFFICIENT STORAGE</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorInternalServerError.html" title='actix_http::error::ErrorInternalServerError fn'>ErrorInternalServerError</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>INTERNAL SERVER ERROR</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorLengthRequired.html" title='actix_http::error::ErrorLengthRequired fn'>ErrorLengthRequired</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>LENGTH
|
||
REQUIRED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorLocked.html" title='actix_http::error::ErrorLocked fn'>ErrorLocked</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>LOCKED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorLoopDetected.html" title='actix_http::error::ErrorLoopDetected fn'>ErrorLoopDetected</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>LOOP DETECTED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorMethodNotAllowed.html" title='actix_http::error::ErrorMethodNotAllowed fn'>ErrorMethodNotAllowed</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>METHOD NOT
|
||
ALLOWED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorMisdirectedRequest.html" title='actix_http::error::ErrorMisdirectedRequest fn'>ErrorMisdirectedRequest</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>MISDIRECTED REQUEST</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorNetworkAuthenticationRequired.html" title='actix_http::error::ErrorNetworkAuthenticationRequired fn'>ErrorNetworkAuthenticationRequired</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>NETWORK AUTHENTICATION REQUIRED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorNotAcceptable.html" title='actix_http::error::ErrorNotAcceptable fn'>ErrorNotAcceptable</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>NOT
|
||
ACCEPTABLE</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorNotExtended.html" title='actix_http::error::ErrorNotExtended fn'>ErrorNotExtended</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>NOT EXTENDED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorNotFound.html" title='actix_http::error::ErrorNotFound fn'>ErrorNotFound</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>NOT FOUND</em>
|
||
response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorNotImplemented.html" title='actix_http::error::ErrorNotImplemented fn'>ErrorNotImplemented</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>NOT IMPLEMENTED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorPayloadTooLarge.html" title='actix_http::error::ErrorPayloadTooLarge fn'>ErrorPayloadTooLarge</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>PAYLOAD TOO LARGE</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorPaymentRequired.html" title='actix_http::error::ErrorPaymentRequired fn'>ErrorPaymentRequired</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>PAYMENT_REQUIRED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorPreconditionFailed.html" title='actix_http::error::ErrorPreconditionFailed fn'>ErrorPreconditionFailed</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>PRECONDITION FAILED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorPreconditionRequired.html" title='actix_http::error::ErrorPreconditionRequired fn'>ErrorPreconditionRequired</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>PRECONDITION REQUIRED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorProxyAuthenticationRequired.html" title='actix_http::error::ErrorProxyAuthenticationRequired fn'>ErrorProxyAuthenticationRequired</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>PROXY
|
||
AUTHENTICATION REQUIRED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorRangeNotSatisfiable.html" title='actix_http::error::ErrorRangeNotSatisfiable fn'>ErrorRangeNotSatisfiable</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>RANGE NOT SATISFIABLE</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorRequestHeaderFieldsTooLarge.html" title='actix_http::error::ErrorRequestHeaderFieldsTooLarge fn'>ErrorRequestHeaderFieldsTooLarge</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>REQUEST HEADER FIELDS TOO LARGE</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorRequestTimeout.html" title='actix_http::error::ErrorRequestTimeout fn'>ErrorRequestTimeout</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate <em>REQUEST
|
||
TIMEOUT</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorServiceUnavailable.html" title='actix_http::error::ErrorServiceUnavailable fn'>ErrorServiceUnavailable</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>SERVICE UNAVAILABLE</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorTooManyRequests.html" title='actix_http::error::ErrorTooManyRequests fn'>ErrorTooManyRequests</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>TOO MANY REQUESTS</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorUnauthorized.html" title='actix_http::error::ErrorUnauthorized fn'>ErrorUnauthorized</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>UNAUTHORIZED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorUnavailableForLegalReasons.html" title='actix_http::error::ErrorUnavailableForLegalReasons fn'>ErrorUnavailableForLegalReasons</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>UNAVAILABLE FOR LEGAL REASONS</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorUnprocessableEntity.html" title='actix_http::error::ErrorUnprocessableEntity fn'>ErrorUnprocessableEntity</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>UNPROCESSABLE ENTITY</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorUnsupportedMediaType.html" title='actix_http::error::ErrorUnsupportedMediaType fn'>ErrorUnsupportedMediaType</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>UNSUPPORTED MEDIA TYPE</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorUpgradeRequired.html" title='actix_http::error::ErrorUpgradeRequired fn'>ErrorUpgradeRequired</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>UPGRADE REQUIRED</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorUriTooLong.html" title='actix_http::error::ErrorUriTooLong fn'>ErrorUriTooLong</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and generate
|
||
<em>URI TOO LONG</em> response.</p>
|
||
</td></tr><tr class='module-item'><td><a class="fn" href="fn.ErrorVariantAlsoNegotiates.html" title='actix_http::error::ErrorVariantAlsoNegotiates fn'>ErrorVariantAlsoNegotiates</a></td><td class='docblock-short'><p>Helper function that creates wrapper of any error and
|
||
generate <em>VARIANT ALSO NEGOTIATES</em> response.</p>
|
||
</td></tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
|
||
<table><tr class='module-item'><td><a class="type" href="type.Result.html" title='actix_http::error::Result type'>Result</a></td><td class='docblock-short'><p>A specialized <a href="https://doc.rust-lang.org/std/result/enum.Result.html"><code>Result</code></a>
|
||
for actix web operations</p>
|
||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_http";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html> |