pub enum LamportPolicy {
Undeclared,
Declared(&'static [u8]),
}Expand description
The lamport-write dimension of a WritePolicy.
A WriteRange covers data bytes; Sealevel writability also
covers lamport credits/debits (close, top-up, transfer). This
enum records whether the instruction declared that second dimension:
Undeclared: the policy says nothing about lamports. Lamport mutation stays ungoverned (today’s behavior for every pre-existingstrict_writescontext), and the write set is not mutation-complete.Declared: only the listed account indices may have their lamports mutated through the runtime’s lamport choke points; every other account’s lamport mutation is refused with the sameCustom(0xD000 | index)error the data-range gate uses. An empty list is valid and means “no lamport mutation anywhere”.
Variants§
Undeclared
Lamport writes undeclared: passthrough, not mutation-complete.
Declared(&'static [u8])
Lamport writes permitted only on the listed account indices.
Trait Implementations§
Source§impl Clone for LamportPolicy
impl Clone for LamportPolicy
impl Copy for LamportPolicy
Source§impl Debug for LamportPolicy
impl Debug for LamportPolicy
impl Eq for LamportPolicy
Source§impl PartialEq for LamportPolicy
impl PartialEq for LamportPolicy
impl StructuralPartialEq for LamportPolicy
Auto Trait Implementations§
impl Freeze for LamportPolicy
impl RefUnwindSafe for LamportPolicy
impl Send for LamportPolicy
impl Sync for LamportPolicy
impl Unpin for LamportPolicy
impl UnsafeUnpin for LamportPolicy
impl UnwindSafe for LamportPolicy
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