pub enum ProxyModeConfig {
Dynamic,
PreGenerate,
}Expand description
TOML-friendly proxy mode selector.
Variants§
Dynamic
Dynamic mode: requests are proxied and cached on demand.
PreGenerate
PreGenerate (SSG) mode: a fixed set of paths is fetched at startup and served exclusively from the cache.
Trait Implementations§
Source§impl Clone for ProxyModeConfig
impl Clone for ProxyModeConfig
Source§fn clone(&self) -> ProxyModeConfig
fn clone(&self) -> ProxyModeConfig
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 ProxyModeConfig
impl Debug for ProxyModeConfig
Source§impl Default for ProxyModeConfig
impl Default for ProxyModeConfig
Source§fn default() -> ProxyModeConfig
fn default() -> ProxyModeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProxyModeConfig
impl<'de> Deserialize<'de> for ProxyModeConfig
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
Source§impl PartialEq for ProxyModeConfig
impl PartialEq for ProxyModeConfig
Source§impl Serialize for ProxyModeConfig
impl Serialize for ProxyModeConfig
impl Eq for ProxyModeConfig
impl StructuralPartialEq for ProxyModeConfig
Auto Trait Implementations§
impl Freeze for ProxyModeConfig
impl RefUnwindSafe for ProxyModeConfig
impl Send for ProxyModeConfig
impl Sync for ProxyModeConfig
impl Unpin for ProxyModeConfig
impl UnsafeUnpin for ProxyModeConfig
impl UnwindSafe for ProxyModeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.