#[non_exhaustive]pub enum TlsEarlyData {
Disabled,
Permissive,
Strict,
Unrestricted,
UnknownValue(UnknownValue),
}region-target-https-proxies or target-https-proxies only.Expand description
The enumerated type for the tlsEarlyData field.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Disabled
TLS 1.3 Early Data is not advertised, and any (invalid) attempts to send Early Data will be rejected by closing the connection.
Permissive
This enables TLS 1.3 0-RTT, and only allows Early Data to be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE). This mode does not enforce any other limitations for requests with Early Data. The application owner should validate that Early Data is acceptable for a given request path.
Strict
This enables TLS 1.3 0-RTT, and only allows Early Data to be included on requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE) without query parameters. Requests that send Early Data with non-idempotent HTTP methods or with query parameters will be rejected with a HTTP 425.
Unrestricted
This enables TLS 1.3 Early Data for requests with any HTTP method including non-idempotent methods list POST. This mode does not enforce any other limitations. This may be valuable for gRPC use cases. However, we do not recommend this method unless you have evaluated your security stance and mitigated the risk of replay attacks using other mechanisms.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using TlsEarlyData::value or TlsEarlyData::name.
Implementations§
Trait Implementations§
Source§impl Clone for TlsEarlyData
impl Clone for TlsEarlyData
Source§fn clone(&self) -> TlsEarlyData
fn clone(&self) -> TlsEarlyData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TlsEarlyData
impl Debug for TlsEarlyData
Source§impl Default for TlsEarlyData
impl Default for TlsEarlyData
Source§impl<'de> Deserialize<'de> for TlsEarlyData
impl<'de> Deserialize<'de> for TlsEarlyData
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>,
Source§impl Display for TlsEarlyData
impl Display for TlsEarlyData
Source§impl From<&str> for TlsEarlyData
impl From<&str> for TlsEarlyData
Source§impl From<i32> for TlsEarlyData
impl From<i32> for TlsEarlyData
Source§impl PartialEq for TlsEarlyData
impl PartialEq for TlsEarlyData
Source§impl Serialize for TlsEarlyData
impl Serialize for TlsEarlyData
impl StructuralPartialEq for TlsEarlyData
Auto Trait Implementations§
impl Freeze for TlsEarlyData
impl RefUnwindSafe for TlsEarlyData
impl Send for TlsEarlyData
impl Sync for TlsEarlyData
impl Unpin for TlsEarlyData
impl UnwindSafe for TlsEarlyData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.