#[repr(u32)]pub enum FlareAction {
Respond = 1,
Transform = 2,
PassThrough = 3,
}Expand description
Action returned by an handle_request() export to tell the host how to
proceed once the flare’s body has run.
The flaron host runtime decodes this from the high 32 bits of the i64
return value ((action << 32) - produced by FlareAction::to_i64).
Variants§
Respond = 1
Send the response the flare just constructed (status / headers /
body set via response). This is the typical case.
Transform = 2
Forward to origin and let the flare transform the upstream response before it is sent back to the client.
PassThrough = 3
Skip the flare entirely on this request - pass through to origin untouched. Useful for conditional bypass logic.
Implementations§
Trait Implementations§
Source§impl Clone for FlareAction
impl Clone for FlareAction
Source§fn clone(&self) -> FlareAction
fn clone(&self) -> FlareAction
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 FlareAction
impl Debug for FlareAction
Source§impl PartialEq for FlareAction
impl PartialEq for FlareAction
impl Copy for FlareAction
impl Eq for FlareAction
impl StructuralPartialEq for FlareAction
Auto Trait Implementations§
impl Freeze for FlareAction
impl RefUnwindSafe for FlareAction
impl Send for FlareAction
impl Sync for FlareAction
impl Unpin for FlareAction
impl UnsafeUnpin for FlareAction
impl UnwindSafe for FlareAction
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