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 PartialEq for ProxyProto
impl PartialEq for ProxyProto
source§fn eq(&self, other: &ProxyProto) -> bool
fn eq(&self, other: &ProxyProto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ProxyProto
impl Serialize for ProxyProto
impl Copy for ProxyProto
impl Eq for ProxyProto
impl StructuralPartialEq for ProxyProto
Auto Trait Implementations§
impl Freeze for ProxyProto
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more