pub enum FetchKind {
HttpProxy,
HttpSynthesize,
WebSocketUpgrade,
L4Forward,
AcmeChallenge,
}Variants§
HttpProxy
HttpSynthesize
WebSocketUpgrade
L4Forward
AcmeChallenge
HTTP-01 ACME challenge responder. Injected by the lower
pass on every plaintext :80 listener whose listener kind
is Http / Auto per spec/crates/engine-acme.md § Challenge: HTTP-01;
returns 200 + the key authorisation when (Host, token)
resolves in the registry’s pending table, 404 otherwise.
Operator-defined rules cannot reference this fetch kind
directly — only the lower pass produces it.
Implementations§
Source§impl FetchKind
impl FetchKind
Sourcepub const fn phase(self) -> FetchPhase
pub const fn phase(self) -> FetchPhase
Authoritative fetch-phase classification. The lower pass uses
this to derive each listener’s crate::ir::ListenerKind from
the set of reachable terminators per entry; new fetch kinds
pick their phase here so the derivation table in
spec/crates/core.md § Listener kind derivation stays single-source.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FetchKind
impl<'de> Deserialize<'de> for FetchKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FetchKind
impl Eq for FetchKind
impl StructuralPartialEq for FetchKind
Auto Trait Implementations§
impl Freeze for FetchKind
impl RefUnwindSafe for FetchKind
impl Send for FetchKind
impl Sync for FetchKind
impl Unpin for FetchKind
impl UnsafeUnpin for FetchKind
impl UnwindSafe for FetchKind
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