Enum ngrok::config::ProxyProto
source · pub enum ProxyProto {
None,
V1,
V2,
}
Expand description
The version of PROXY protocol to use with this tunnel.
ProxyProto::None disables PROXY protocol support.
Variants§
Trait Implementations§
source§impl Clone for ProxyProto
impl Clone for ProxyProto
source§fn clone(&self) -> ProxyProto
fn clone(&self) -> ProxyProto
Returns a copy 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 ProxyProto
impl Debug for ProxyProto
source§impl Default for ProxyProto
impl Default for ProxyProto
source§fn default() -> ProxyProto
fn default() -> ProxyProto
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ProxyProto
impl<'de> Deserialize<'de> for ProxyProto
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 From<ProxyProto> for i64
impl From<ProxyProto> for i64
source§fn from(other: ProxyProto) -> Self
fn from(other: ProxyProto) -> Self
Converts to this type from the input type.
source§impl From<i64> for ProxyProto
impl From<i64> for ProxyProto
source§impl FromStr for ProxyProto
impl FromStr for ProxyProto
source§impl Serialize for ProxyProto
impl Serialize for ProxyProto
impl Copy for ProxyProto
Auto Trait Implementations§
impl RefUnwindSafe for ProxyProto
impl Send for ProxyProto
impl Sync for ProxyProto
impl Unpin for ProxyProto
impl UnwindSafe for ProxyProto
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