pub enum UpstreamHost {
Backend,
Client,
Fixed(String),
}Expand description
The Host a proxy route sends its upstream.
Variants§
Backend
The backend’s address (the default).
Client
The client’s Host (preserve_host = true), like nginx’s
proxy_set_header Host $host.
Fixed(String)
This name (upstream_host = "…").
Trait Implementations§
Source§impl Clone for UpstreamHost
impl Clone for UpstreamHost
Source§impl Debug for UpstreamHost
impl Debug for UpstreamHost
Source§impl Default for UpstreamHost
impl Default for UpstreamHost
impl Eq for UpstreamHost
Source§impl PartialEq for UpstreamHost
impl PartialEq for UpstreamHost
impl StructuralPartialEq for UpstreamHost
Auto Trait Implementations§
impl Freeze for UpstreamHost
impl RefUnwindSafe for UpstreamHost
impl Send for UpstreamHost
impl Sync for UpstreamHost
impl Unpin for UpstreamHost
impl UnsafeUnpin for UpstreamHost
impl UnwindSafe for UpstreamHost
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.