#[non_exhaustive]pub struct RethNewPayloadParams<E = Value> {
pub payload: RethNewPayloadInput<E>,
pub wait_for_persistence: Option<bool>,
pub wait_for_caches: Option<bool>,
}Expand description
Parameters for reth_newPayload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.payload: RethNewPayloadInput<E>The payload input.
wait_for_persistence: Option<bool>Whether to wait for persistence before returning.
wait_for_caches: Option<bool>Whether to wait for caches before returning.
Implementations§
Source§impl<E> RethNewPayloadParams<E>
impl<E> RethNewPayloadParams<E>
Sourcepub const fn new(payload: RethNewPayloadInput<E>) -> Self
pub const fn new(payload: RethNewPayloadInput<E>) -> Self
Creates new RethNewPayloadParams with the given payload input.
Sourcepub const fn with_wait_for_persistence(self, wait: bool) -> Self
pub const fn with_wait_for_persistence(self, wait: bool) -> Self
Sets whether to wait for persistence.
Sourcepub const fn with_wait_for_caches(self, wait: bool) -> Self
pub const fn with_wait_for_caches(self, wait: bool) -> Self
Sets whether to wait for caches.
Trait Implementations§
Source§impl<E: Clone> Clone for RethNewPayloadParams<E>
impl<E: Clone> Clone for RethNewPayloadParams<E>
Source§fn clone(&self) -> RethNewPayloadParams<E>
fn clone(&self) -> RethNewPayloadParams<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for RethNewPayloadParams<E>
impl<E: Debug> Debug for RethNewPayloadParams<E>
Source§impl<'de, E> Deserialize<'de> for RethNewPayloadParams<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for RethNewPayloadParams<E>where
E: Deserialize<'de>,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E> From<RethNewPayloadInput<E>> for RethNewPayloadParams<E>
impl<E> From<RethNewPayloadInput<E>> for RethNewPayloadParams<E>
Source§fn from(payload: RethNewPayloadInput<E>) -> Self
fn from(payload: RethNewPayloadInput<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E = Value> !Freeze for RethNewPayloadParams<E>
impl<E> RefUnwindSafe for RethNewPayloadParams<E>where
E: RefUnwindSafe,
impl<E> Send for RethNewPayloadParams<E>where
E: Send,
impl<E> Sync for RethNewPayloadParams<E>where
E: Sync,
impl<E> Unpin for RethNewPayloadParams<E>where
E: Unpin,
impl<E> UnsafeUnpin for RethNewPayloadParams<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for RethNewPayloadParams<E>where
E: UnwindSafe,
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<'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> ⓘ
Converts
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> ⓘ
Converts
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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.