#[non_exhaustive]pub enum Layer {
L0,
L1,
L2,
L3,
L4,
L5,
}Expand description
Conformance layer declared by operation metadata in the frozen contract.
Example: Layer::L2 records that an operation belongs to the byte-oriented
library-operation layer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
L0
L0: published wire-format and data-model contracts.
L1
L1: primitive scalar and bit-level operations.
L2
L2: byte-oriented library operations.
L3
L3: structured algorithms and graph-like operations.
L4
L4: mutation-gated composition surfaces.
L5
L5: adversarial and stability-hardened operations.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layer
impl<'de> Deserialize<'de> for Layer
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
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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