Enum rustful::filter::ResponseAction
[−]
[src]
The result from a response filter.
Variants
Next(Option<Data<'a>>)
Continue to the next filter and maybe write data.
SilentAbort
Do not continue to the next filter.
Abort(String)
Abort with an error.
Methods
impl<'a> ResponseAction<'a>
[src]
impl<'a> ResponseAction<'a>
pub fn next<T: Into<Data<'a>>>(data: Option<T>) -> ResponseAction<'a>
[src]
pub fn next<T: Into<Data<'a>>>(data: Option<T>) -> ResponseAction<'a>
Continue to the next filter and maybe write data.
pub fn silent_abort() -> ResponseAction<'a>
[src]
pub fn silent_abort() -> ResponseAction<'a>
Do not continue to the next filter.
pub fn abort(message: String) -> ResponseAction<'a>
[src]
pub fn abort(message: String) -> ResponseAction<'a>
Abort with an error.
Trait Implementations
impl<'a> Clone for ResponseAction<'a>
[src]
impl<'a> Clone for ResponseAction<'a>
fn clone(&self) -> ResponseAction<'a>
[src]
fn clone(&self) -> ResponseAction<'a>
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<'a> Send for ResponseAction<'a>
impl<'a> Send for ResponseAction<'a>
impl<'a> Sync for ResponseAction<'a>
impl<'a> Sync for ResponseAction<'a>