pub struct HeaderEditSnapshot {
pub key: Vec<u8>,
pub val: Vec<u8>,
pub mode: HeaderEditMode,
}Expand description
Owned snapshot of a per-frontend header edit, captured at routing
time so the emission boundary can apply set/replace/delete without
touching the routing layer’s Rc<[HeaderEdit]> slices.
mode chooses between explicit Append/Delete/SetIfAbsent semantics.
For backwards compatibility mode = Append paired with an empty
val is still treated as a delete by apply_response_header_edits
(HAProxy del-header parity), so callers that have not yet migrated
to the explicit HeaderEditMode::Delete keep working unchanged.
Fields§
§key: Vec<u8>§val: Vec<u8>§mode: HeaderEditModeTrait Implementations§
Source§impl Clone for HeaderEditSnapshot
impl Clone for HeaderEditSnapshot
Source§fn clone(&self) -> HeaderEditSnapshot
fn clone(&self) -> HeaderEditSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HeaderEditSnapshot
impl RefUnwindSafe for HeaderEditSnapshot
impl Send for HeaderEditSnapshot
impl Sync for HeaderEditSnapshot
impl Unpin for HeaderEditSnapshot
impl UnsafeUnpin for HeaderEditSnapshot
impl UnwindSafe for HeaderEditSnapshot
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