pub trait WaitLevel:
Sealed
+ Send
+ Sync
+ 'static {
type Response: Send + 'static;
// Required method
fn status() -> TxExecutionStatus;
}Expand description
Trait for type-safe transaction wait levels.
Each wait level is a zero-sized marker type that carries:
- The
TxExecutionStatusto send to the RPC - An associated
Responsetype that determines whatsend().wait_until(...)returns
This trait is sealed and cannot be implemented outside this crate.
Required Associated Types§
Required Methods§
Sourcefn status() -> TxExecutionStatus
fn status() -> TxExecutionStatus
The RPC wait_until value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.