Enum snarkvm_dpc::virtual_machine::event::Event
source · [−]pub enum Event<N: Network> {
Custom(Vec<u8>),
RecordViewKey(u8, N::RecordViewKey),
Operation(Operation<N>),
}
Variants
Custom(Vec<u8>)
Emits publicly-visible arbitrary data.
RecordViewKey(u8, N::RecordViewKey)
Emits the view key for an output record at the specified index in a transition.
Operation(Operation<N>)
Emits the operation performed in a transition.
Trait Implementations
sourceimpl<'de, N: Network> Deserialize<'de> for Event<N>
impl<'de, N: Network> Deserialize<'de> for Event<N>
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<N: PartialEq + Network> PartialEq<Event<N>> for Event<N> where
N::RecordViewKey: PartialEq,
impl<N: PartialEq + Network> PartialEq<Event<N>> for Event<N> where
N::RecordViewKey: PartialEq,
impl<N: Eq + Network> Eq for Event<N> where
N::RecordViewKey: Eq,
impl<N: Network> StructuralEq for Event<N>
impl<N: Network> StructuralPartialEq for Event<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Event<N> where
N: RefUnwindSafe,
<N as Network>::FunctionID: RefUnwindSafe,
<N as Network>::ProgramAffineCurve: RefUnwindSafe,
<N as Network>::RecordViewKey: RefUnwindSafe,
impl<N> Send for Event<N>
impl<N> Sync for Event<N>
impl<N> Unpin for Event<N> where
N: Unpin,
<N as Network>::FunctionID: Unpin,
<N as Network>::ProgramAffineCurve: Unpin,
<N as Network>::RecordViewKey: Unpin,
impl<N> UnwindSafe for Event<N> where
N: UnwindSafe,
<N as Network>::FunctionID: UnwindSafe,
<N as Network>::ProgramAffineCurve: UnwindSafe,
<N as Network>::RecordViewKey: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more