Enum rustful::filter::ContextAction
[−]
[src]
pub enum ContextAction { Next, Abort(StatusCode), }
The result from a context filter.
Variants
Next
Continue to the next filter in the stack.
Abort(StatusCode)
Abort and set HTTP status.
Methods
impl<'a> ContextAction
[src]
impl<'a> ContextAction
pub fn next() -> ContextAction
[src]
pub fn next() -> ContextAction
Continue to the next filter in the stack.
pub fn abort(status: StatusCode) -> ContextAction
[src]
pub fn abort(status: StatusCode) -> ContextAction
Abort and set HTTP status.
Trait Implementations
impl Clone for ContextAction
[src]
impl Clone for ContextAction
fn clone(&self) -> ContextAction
[src]
fn clone(&self) -> ContextAction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ContextAction
impl Send for ContextAction
impl Sync for ContextAction
impl Sync for ContextAction