pub enum StackLimiterVersion {
V0,
V1,
}
Expand description
Our original code for limiting WASM stack was buggy. We fixed that, but we
still have to use old (V0
) limiter for old protocol versions.
This struct here exists to enforce that the value in the config is either
0
or 1
. We could have used a bool
instead, but there’s a chance that
our current impl isn’t perfect either and would need further tweaks in the
future.
Variants§
V0
Old, buggy version, don’t use it unless specifically to support old protocol version.
V1
What we use in today’s protocol.
Implementations§
source§impl StackLimiterVersion
impl StackLimiterVersion
pub fn v0() -> StackLimiterVersion
Trait Implementations§
source§impl Clone for StackLimiterVersion
impl Clone for StackLimiterVersion
source§fn clone(&self) -> StackLimiterVersion
fn clone(&self) -> StackLimiterVersion
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 StackLimiterVersion
impl Debug for StackLimiterVersion
source§impl<'de> Deserialize<'de> for StackLimiterVersion
impl<'de> Deserialize<'de> for StackLimiterVersion
source§fn deserialize<D>(
deserializer: D
) -> Result<StackLimiterVersion, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<StackLimiterVersion, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for StackLimiterVersion
impl Hash for StackLimiterVersion
source§impl PartialEq<StackLimiterVersion> for StackLimiterVersion
impl PartialEq<StackLimiterVersion> for StackLimiterVersion
source§fn eq(&self, other: &StackLimiterVersion) -> bool
fn eq(&self, other: &StackLimiterVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StackLimiterVersion
impl Serialize for StackLimiterVersion
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for StackLimiterVersion
impl Eq for StackLimiterVersion
impl StructuralEq for StackLimiterVersion
impl StructuralPartialEq for StackLimiterVersion
Auto Trait Implementations§
impl RefUnwindSafe for StackLimiterVersion
impl Send for StackLimiterVersion
impl Sync for StackLimiterVersion
impl Unpin for StackLimiterVersion
impl UnwindSafe for StackLimiterVersion
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request