Struct jormungandr::fragment::PoolEntry
source · pub struct PoolEntry {
fragment_ref: FragmentId,
fragment_fee: Value,
fragment_size: usize,
received_at: SystemTime,
descendants_fee: Value,
descendants_size: usize,
ancestors_fee: Value,
ancestors_size: usize,
}
Fields§
§fragment_ref: FragmentId
§fragment_fee: Value
fee of the fragment, does not include the fee of descendants entries or ancestors
fragment_size: usize
size of the fragment in the memory pool
received_at: SystemTime
time when the entry was added to the pool
descendants_fee: Value
the fee of the accumulated descendant fragments does not include the fee of this entry
descendants_size: usize
the size of the accumulated descendant fragments Does not include the size of this entry
ancestors_fee: Value
the fee of the accumulated ancestor fragments does not include the fee of this entry
ancestors_size: usize
the size of the accumulated ancestor fragments Does not include the size of this entry
Implementations§
source§impl PoolEntry
impl PoolEntry
pub fn new(fragment: &Fragment) -> Self
pub fn fragment_ref(&self) -> &FragmentId
pub fn fragment_fee(&self) -> &Value
pub fn fragment_size(&self) -> &usize
pub fn received_at(&self) -> &SystemTime
pub fn with_descendants_fee(&self) -> Result<Value, ValueError>
pub fn with_descendants_size(&self) -> usize
pub fn with_ancestors_fee(&self) -> Result<Value, ValueError>
pub fn with_ancestors_size(&self) -> usize
Auto Trait Implementations§
impl RefUnwindSafe for PoolEntry
impl Send for PoolEntry
impl Sync for PoolEntry
impl Unpin for PoolEntry
impl UnwindSafe for PoolEntry
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request