Skip to main content

FixedReceiptTable

Struct FixedReceiptTable 

Source
pub struct FixedReceiptTable<const MAX_OUTSTANDING_RECEIPTS: usize> { /* private fields */ }

Trait Implementations§

Source§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> Debug for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

Source§

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

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

impl<const MAX_OUTSTANDING_RECEIPTS: usize> Default for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

Source§

fn default() -> FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

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

impl<const MAX_OUTSTANDING_RECEIPTS: usize> ReceiptTable for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

Source§

fn capacity(&self) -> usize

Source§

fn len(&self) -> usize

Source§

fn packet_hashes(&self) -> &[PacketHash]

Source§

fn command_ids(&self) -> &[CommandId]

Source§

fn kinds(&self) -> &[ReceiptKind]

Source§

fn signing_keys(&self) -> &[IdentitySigningPublicKey]

Source§

fn sent_ats(&self) -> &[InstantMillis]

Source§

fn deadlines(&self) -> &[ReceiptDeadline]

Source§

fn set_deadline(&mut self, index: usize, deadline: ReceiptDeadline)

Source§

fn push( &mut self, receipt: OutstandingReceipt, ) -> Result<usize, TrackReceiptError>

Source§

fn remove(&mut self, index: usize)

Removal must preserve insertion order (shift, not swap): index order IS the implicit-proof trial order, and proofs return in send order over a FIFO wire. A swap-remove was measured paying ~5 Ed25519 verifies per proof where one suffices; the reference holds the same invariant free (an append-only list).
Source§

fn is_empty(&self) -> bool

Auto Trait Implementations§

§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> Freeze for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> RefUnwindSafe for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> Send for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> Sync for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> Unpin for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> UnsafeUnpin for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

§

impl<const MAX_OUTSTANDING_RECEIPTS: usize> UnwindSafe for FixedReceiptTable<MAX_OUTSTANDING_RECEIPTS>

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.