Enum tokio_fastcgi::RequestResult
source · pub enum RequestResult {
Complete(u32),
Overloaded,
UnknownRole,
}
Expand description
Variants§
Complete(u32)
The request completed successfully. The returned status value is defined by the role of the FastCGI application.
§Result codes
The application returns the status code that the CGI program would have
returned via the exit
system call.
Overloaded
The application ran out of resources (for example database connections). The request is rejected.
UnknownRole
The application is not prepared to handle the role requested by the web-server. For example if a FastCGI responder is called as a filter or an authorizer.
Trait Implementations§
source§impl Clone for RequestResult
impl Clone for RequestResult
source§fn clone(&self) -> RequestResult
fn clone(&self) -> RequestResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<RequestResult> for u8
impl From<RequestResult> for u8
source§fn from(rr: RequestResult) -> Self
fn from(rr: RequestResult) -> Self
Allow the RequestResult to be converted into a u8. This method returns the magic number that must be used as the result field of the FastCGI protocol.
impl Copy for RequestResult
Auto Trait Implementations§
impl RefUnwindSafe for RequestResult
impl Send for RequestResult
impl Sync for RequestResult
impl Unpin for RequestResult
impl UnwindSafe for RequestResult
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