EtableResolver

Struct EtableResolver 

Source
pub struct EtableResolver<'precompile, 'etable, Pre, ES> { /* private fields */ }
Expand description

The standard code resolver where the color is an Etable. This is usually what you need.

Implementations§

Source§

impl<'precompile, 'etable, Pre, ES> EtableResolver<'precompile, 'etable, Pre, ES>

Source

pub const fn new(precompiles: &'precompile Pre, etable: &'etable ES) -> Self

Create a new EtableResolver.

Trait Implementations§

Source§

impl<'precompile, 'etable, H, Pre, ES> Resolver<H> for EtableResolver<'precompile, 'etable, Pre, ES>

Source§

fn resolve_call( &self, origin: ResolverOrigin, _scheme: CallScheme, code_address: H160, input: Vec<u8>, state: ES::State, handler: &mut H, ) -> Result<InvokerControl<Self::Interpreter, Self::State>, ExitError>

Resolve a call (with the target code address).

Source§

fn resolve_create( &self, origin: ResolverOrigin, init_code: Vec<u8>, state: ES::State, handler: &mut H, ) -> Result<InvokerControl<Self::Interpreter, Self::State>, ExitError>

Resolve a create (with the init code).

Source§

type State = <ES as Etable<H>>::State

State type of the resolver.
Source§

type Interpreter = EtableInterpreter<'etable, <ES as Etable<H>>::State, ES>

Interpreter type of the resolver.

Auto Trait Implementations§

§

impl<'precompile, 'etable, Pre, ES> Freeze for EtableResolver<'precompile, 'etable, Pre, ES>

§

impl<'precompile, 'etable, Pre, ES> RefUnwindSafe for EtableResolver<'precompile, 'etable, Pre, ES>
where ES: RefUnwindSafe, Pre: RefUnwindSafe,

§

impl<'precompile, 'etable, Pre, ES> Send for EtableResolver<'precompile, 'etable, Pre, ES>
where ES: Sync, Pre: Sync,

§

impl<'precompile, 'etable, Pre, ES> Sync for EtableResolver<'precompile, 'etable, Pre, ES>
where ES: Sync, Pre: Sync,

§

impl<'precompile, 'etable, Pre, ES> Unpin for EtableResolver<'precompile, 'etable, Pre, ES>

§

impl<'precompile, 'etable, Pre, ES> UnwindSafe for EtableResolver<'precompile, 'etable, Pre, ES>
where ES: RefUnwindSafe, Pre: RefUnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> TrapConsume<T> for T

Source§

type Rest = Infallible

Rest type.
Source§

fn consume(self) -> Result<T, Infallible>

Consume T to get Rest.
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V