#[non_exhaustive]pub struct RethPayloadStatus {
pub status: PayloadStatus,
pub latency_us: u64,
pub persistence_wait_us: Option<u64>,
pub execution_cache_wait_us: Option<u64>,
pub sparse_trie_wait_us: Option<u64>,
}Expand description
Extended payload status returned by reth_newPayload.
Wraps the standard PayloadStatus with server-side timing information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: PayloadStatusThe standard payload status.
latency_us: u64Total execution latency in microseconds.
persistence_wait_us: Option<u64>Time spent waiting for persistence in microseconds, if applicable.
execution_cache_wait_us: Option<u64>Time spent waiting for the execution cache lock in microseconds, if applicable.
sparse_trie_wait_us: Option<u64>Time spent waiting for the sparse trie lock in microseconds, if applicable.
Implementations§
Source§impl RethPayloadStatus
impl RethPayloadStatus
Sourcepub const fn new(status: PayloadStatus, latency_us: u64) -> Self
pub const fn new(status: PayloadStatus, latency_us: u64) -> Self
Creates a new RethPayloadStatus with the given status and latency.
Sourcepub const fn with_persistence_wait_us(self, us: u64) -> Self
pub const fn with_persistence_wait_us(self, us: u64) -> Self
Sets the persistence wait time.
Sourcepub const fn with_execution_cache_wait_us(self, us: u64) -> Self
pub const fn with_execution_cache_wait_us(self, us: u64) -> Self
Sets the execution cache wait time.
Sourcepub const fn with_sparse_trie_wait_us(self, us: u64) -> Self
pub const fn with_sparse_trie_wait_us(self, us: u64) -> Self
Sets the sparse trie wait time.
Trait Implementations§
Source§impl AsRef<PayloadStatus> for RethPayloadStatus
impl AsRef<PayloadStatus> for RethPayloadStatus
Source§fn as_ref(&self) -> &PayloadStatus
fn as_ref(&self) -> &PayloadStatus
Source§impl Clone for RethPayloadStatus
impl Clone for RethPayloadStatus
Source§fn clone(&self) -> RethPayloadStatus
fn clone(&self) -> RethPayloadStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RethPayloadStatus
impl Debug for RethPayloadStatus
Source§impl<'de> Deserialize<'de> for RethPayloadStatus
impl<'de> Deserialize<'de> for RethPayloadStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for RethPayloadStatus
impl RefUnwindSafe for RethPayloadStatus
impl Send for RethPayloadStatus
impl Sync for RethPayloadStatus
impl Unpin for RethPayloadStatus
impl UnsafeUnpin for RethPayloadStatus
impl UnwindSafe for RethPayloadStatus
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
impl<'de, T> BorrowedRpcObject<'de> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for T
impl<T> RpcRecv for T
impl<T> RpcSend for T
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 120 bytes