pub enum HandlerConfig {
Proxy(ProxyConfig),
FastCgi(FastCgiConfig),
ForwardProxy(ForwardProxyConfig),
Cgi(CgiConfig),
Scgi(ScgiConfig),
FileServer(FileServerConfig),
Redirect {
to: String,
permanent: bool,
},
Respond {
status: u16,
body: String,
},
Module {
name: String,
config: HashMap<String, String>,
},
}Expand description
Terminal handler for a route.
Variants§
Proxy(ProxyConfig)
FastCgi(FastCgiConfig)
ForwardProxy(ForwardProxyConfig)
Cgi(CgiConfig)
Scgi(ScgiConfig)
FileServer(FileServerConfig)
Redirect
Respond
Module
A module-provided handler loaded via the plugin system.
Trait Implementations§
Source§impl Clone for HandlerConfig
impl Clone for HandlerConfig
Source§fn clone(&self) -> HandlerConfig
fn clone(&self) -> HandlerConfig
Returns a duplicate 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 HandlerConfig
impl Debug for HandlerConfig
Auto Trait Implementations§
impl Freeze for HandlerConfig
impl RefUnwindSafe for HandlerConfig
impl Send for HandlerConfig
impl Sync for HandlerConfig
impl Unpin for HandlerConfig
impl UnsafeUnpin for HandlerConfig
impl UnwindSafe for HandlerConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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