Enum miden_objects::notes::NoteExecutionHint
source · #[repr(u8)]pub enum NoteExecutionHint {
Network = 0,
Local = 1,
}Expand description
super::Note’s execution mode hints.
The execution hints are not enforced, therefore function only as hints. For example, if a note’s tag is created with the NoteExecutionHint::Network, further validation is necessary to check the account_id is known, that the account’s state is on-chain, and the account is controlled by the network.
The goal of the hint is to allow for a network node to quickly filter notes that are not intended for network execution, and skip the validation steps mentioned above.
Variants§
Trait Implementations§
source§impl Clone for NoteExecutionHint
impl Clone for NoteExecutionHint
source§fn clone(&self) -> NoteExecutionHint
fn clone(&self) -> NoteExecutionHint
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 NoteExecutionHint
impl Debug for NoteExecutionHint
source§impl PartialEq for NoteExecutionHint
impl PartialEq for NoteExecutionHint
source§fn eq(&self, other: &NoteExecutionHint) -> bool
fn eq(&self, other: &NoteExecutionHint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for NoteExecutionHint
impl Eq for NoteExecutionHint
impl StructuralPartialEq for NoteExecutionHint
Auto Trait Implementations§
impl Freeze for NoteExecutionHint
impl RefUnwindSafe for NoteExecutionHint
impl Send for NoteExecutionHint
impl Sync for NoteExecutionHint
impl Unpin for NoteExecutionHint
impl UnwindSafe for NoteExecutionHint
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)