Skip to main content

SendableExt

Trait SendableExt 

Source
pub unsafe trait SendableExt: Clone {
    // Provided method
    fn detached(&self) -> Self { ... }
}
Expand description

Network extension state that can be copied without sharing thread-unsafe state.

Some extensions, such as Tempo’s, share transaction-local state with their precompiles through Rc. StoredExt keeps such state outside a running EVM and across threads.

§Safety

Self::detached must return a value that shares no thread-unsafe state with self or any other value, and must not access thread-unsafe state of self.

Provided Methods§

Source

fn detached(&self) -> Self

Returns a copy that shares no thread-unsafe state with self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SendableExt for ()

Source§

impl SendableExt for BaseEvmExt

Available on crate feature base only.
Source§

impl SendableExt for MonadEvmExt

Available on crate feature monad only.
Source§

impl SendableExt for OpEvmExt

Available on crate feature optimism only.
Source§

impl SendableExt for TempoEvmExt

Source§

fn detached(&self) -> Self

Implementors§