aztec-nr - noir_aztec::messages::delivery

Struct OnchainDeliveryMode

pub struct OnchainDeliveryMode
{ /* private fields */ }

The mode of an on-chain message delivery: unconstrained or constrained tagging.

This is kept separate from the private [DeliveryMode] wrapper because it is used in external ABIs and therefore owns the serialization and validation for the on-chain-only subset.

Consumers derive modes through the delivery API, e.g. let mode: OnchainDeliveryMode = MessageDelivery::onchain_unconstrained().into().

Implementations

impl OnchainDeliveryMode

Trait implementations

impl Deserialize for OnchainDeliveryMode

pub fn deserialize(fields: [Field; 1]) -> Self pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self

impl Eq for OnchainDeliveryMode

pub fn eq(self, other: Self) -> bool

impl From<OnchainConstrainedDelivery> for OnchainDeliveryMode

pub fn from(_delivery: OnchainConstrainedDelivery) -> Self

impl From<OnchainUnconstrainedDelivery> for OnchainDeliveryMode

pub fn from(_delivery: OnchainUnconstrainedDelivery) -> Self

impl Serialize for OnchainDeliveryMode

pub fn serialize(self) -> [Field; 1] pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)

impl ToField for OnchainDeliveryMode

pub fn to_field(self) -> Field