pub enum Mode {
Paper,
Live,
}Expand description
Per-invocation engine-mode override. See HttpClient::with_mode.
Named Mode rather than EngineMode so the import list on
the adapter side stays short (use zero_engine_client::Mode;).
Variants§
Implementations§
Source§impl Mode
impl Mode
Sourcepub const fn as_header_value(self) -> &'static str
pub const fn as_header_value(self) -> &'static str
Wire representation used in the X-Zero-Mode header.
Lowercase to match the header-value convention on the
engine side; deliberately kept narrow so a future
Shadow / Replay mode lands with an explicit parser
rather than a silent to_ascii_lowercase extension.
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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