pub enum CgiDialect {
Rfc3875,
}
Expand description
The CGI dialect to use when running a CGI workload.
Variants§
Implementations§
Source§impl CgiDialect
impl CgiDialect
pub fn prepare_environment_variables( self, parts: Parts, env: &mut HashMap<String, String>, )
Sourcepub async fn extract_response_header(
self,
stdout: &mut (impl AsyncBufRead + Unpin),
) -> Result<Parts, CgiError>
pub async fn extract_response_header( self, stdout: &mut (impl AsyncBufRead + Unpin), ) -> Result<Parts, CgiError>
Extract the http::response::Parts
from a CGI script’s stdout.
§Note
This might stall if reading from stdout stalls. Care should be taken to avoid waiting forever (e.g. by adding a timeout).
pub const fn to_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for CgiDialect
impl Clone for CgiDialect
Source§fn clone(&self) -> CgiDialect
fn clone(&self) -> CgiDialect
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 Debug for CgiDialect
impl Debug for CgiDialect
Source§impl Default for CgiDialect
impl Default for CgiDialect
Source§fn default() -> CgiDialect
fn default() -> CgiDialect
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CgiDialect
impl<'de> Deserialize<'de> for CgiDialect
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CgiDialect
impl Display for CgiDialect
Source§impl FromStr for CgiDialect
impl FromStr for CgiDialect
Source§impl PartialEq for CgiDialect
impl PartialEq for CgiDialect
Source§impl Serialize for CgiDialect
impl Serialize for CgiDialect
impl Copy for CgiDialect
impl Eq for CgiDialect
impl StructuralPartialEq for CgiDialect
Auto Trait Implementations§
impl Freeze for CgiDialect
impl RefUnwindSafe for CgiDialect
impl Send for CgiDialect
impl Sync for CgiDialect
impl Unpin for CgiDialect
impl UnwindSafe for CgiDialect
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