Skip to main content

MempoolData

Struct MempoolData 

Source
pub struct MempoolData<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> { /* private fields */ }

Implementations§

Source§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

Source

pub fn new( utxo_mempool_info: [Option<([u8; 32], MempoolInfo)>; MAX_UTXOS], accounts_utxo_mempool_info: [AccountMempoolInfo; MAX_ACCOUNTS], ) -> MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

Source

pub fn get_utxo_status(&self, txid: [u8; 32]) -> TxStatus

Source

pub fn get_mempool_info_for_accounts( &self, n_accounts: usize, ) -> &[AccountMempoolInfo]

Source

pub fn account_order_by_similarity( &self, n_accounts: usize, ) -> [usize; MAX_ACCOUNTS]

Compute a stable ordering of account indices [0, n_accounts) by similarity. Lower priority_index comes first. Ties preserve input order.

Trait Implementations§

Source§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> Debug for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

Source§

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

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

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> Default for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

Source§

fn default() -> MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

Returns the “default value” for a type. Read more
Source§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> MempoolDataView for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

Auto Trait Implementations§

§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> Freeze for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> RefUnwindSafe for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> Send for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> Sync for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> Unpin for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> UnsafeUnpin for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

§

impl<const MAX_UTXOS: usize, const MAX_ACCOUNTS: usize> UnwindSafe for MempoolData<MAX_UTXOS, MAX_ACCOUNTS>

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<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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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