Skip to main content

ActionAnchor

Enum ActionAnchor 

Source
pub enum ActionAnchor {
    BeforeSlot {
        slots: Vec<u64>,
    },
    AfterSlot {
        slots: Vec<u64>,
    },
    BeforeEverySlot {
        every_n_slots: NonZeroU64,
    },
    AfterEverySlot {
        every_n_slots: NonZeroU64,
    },
    BeforeBatch {
        batches: Vec<BatchPosition>,
    },
    BeforeMatch {
        filter: DiscoveryFilter,
    },
    AfterMatch {
        filter: DiscoveryFilter,
    },
    AfterChange {
        accounts: NonEmptyAccounts,
    },
}
Expand description

Where a ScheduledAction fires.

Tagged by at: {"at": "afterEverySlot", "everyNSlots": 10}.

Variants§

§

BeforeSlot

At the start of each slot, before its transactions execute and before reroute quoting. Fires the entry for the current slot, if any.

Fields

§slots: Vec<u64>

The slots the action fires at. With transactions, one per transaction: transaction i fires at slots[i]. Encoded on the wire as base64 of the zstd-compressed JSON list.

§

AfterSlot

At the end of each slot, after its transactions execute but before it finalizes. Fires the entry for the current slot, if any.

Fields

§slots: Vec<u64>
§

BeforeEverySlot

Where beforeSlot fires, at every slot that is a multiple of every_n_slots. The whole sequence fires at each, so a sequence repeated across a range is sent once rather than once per slot. A slot that carried no block fires nothing.

Fields

§every_n_slots: NonZeroU64

Wire name everyNSlots. Default 1: every slot.

§

AfterEverySlot

Where afterSlot fires, at every slot that is a multiple of every_n_slots. The whole sequence fires at each. A slot that carried no block fires nothing.

Fields

§every_n_slots: NonZeroU64

Wire name everyNSlots. Default 1: every slot.

§

BeforeBatch

Fires entry i of transactions alone before batches[i].

Fields

§batches: Vec<BatchPosition>

Parallel to transactions.

§

BeforeMatch

Before each batch matching filter executes. The whole sequence fires at each matching batch.

Fields

§filter: DiscoveryFilter

Which batches to fire before.

§

AfterMatch

After each batch matching filter commits. The whole sequence fires at each matching batch.

Fields

§filter: DiscoveryFilter

Which batches to fire after.

§

AfterChange

After each batch that changed one of accounts, decided from the state the batch left rather than from the accounts its transactions lock. The whole sequence fires at each such batch. Only under replayAccountState, whose recording holds the accounts each batch changed.

Fields

§accounts: NonEmptyAccounts

The accounts whose change fires the sequence.

Trait Implementations§

Source§

impl Clone for ActionAnchor

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ActionAnchor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ActionAnchor

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ActionAnchor

Source§

impl PartialEq for ActionAnchor

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ActionAnchor

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ActionAnchor

Auto Trait Implementations§

§

impl Forget for ActionAnchor

§

impl Freeze for ActionAnchor
where *const u8 is !null: Freeze, PhantomData<u64>: Freeze, NonZero<u64>: Freeze, PhantomData<BatchPosition>: Freeze, *const LeafNode<Address, SetValZST> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(Address, SetValZST)>>: Freeze,

§

impl Move for ActionAnchor

§

impl RefUnwindSafe for ActionAnchor

§

impl Send for ActionAnchor
where RawVecInner: Send, NonZero<u64>: Send, NodeRef<Owned, Address, SetValZST, LeafOrInternal>: Send, BoxRaw<(Address, SetValZST)>: Send,

§

impl Sync for ActionAnchor
where RawVecInner: Sync, NonZero<u64>: Sync, NodeRef<Owned, Address, SetValZST, LeafOrInternal>: Sync, BoxRaw<(Address, SetValZST)>: Sync,

§

impl Unpin for ActionAnchor
where *const u8 is !null: Unpin, NonZero<u64>: Unpin, *const LeafNode<Address, SetValZST> is !null: Unpin, Box<(Address, SetValZST)>: Unpin,

§

impl UnsafeUnpin for ActionAnchor
where *const u8 is !null: UnsafeUnpin, PhantomData<u64>: UnsafeUnpin, NonZeroU64Inner: UnsafeUnpin, PhantomData<BatchPosition>: UnsafeUnpin, *const LeafNode<Address, SetValZST> is !null: UnsafeUnpin, PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin, PhantomData<Box<(Address, SetValZST)>>: UnsafeUnpin,

§

impl UnwindSafe for ActionAnchor
where RawVecInner: UnwindSafe, NonZero<u64>: UnwindSafe, BTreeMap<Address, SetValZST>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V