Home
runx-runtime

runx_runtime::host

Structs §

NoopHost §

pub struct runx_runtime::host::NoopHost { /* ... */ }

Trait Implementations §

impl Borrow for NoopHost

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for NoopHost

borrow_mut

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

impl Into for NoopHost

into

fn into(self: Self) -> U

Calls U::from(self).

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

impl From for NoopHost

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for NoopHost

Error

try_into

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

impl TryFrom for NoopHost

Error

try_from

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

impl Any for NoopHost

type_id

fn type_id(self: &Self) -> TypeId

impl Same for NoopHost

Output

impl Default for NoopHost

default

fn default() -> NoopHost

impl Host for NoopHost

report

fn report(self: &mut Self, _event: ExecutionEvent) -> Result<(), RuntimeError>

impl Send for NoopHost

impl Sync for NoopHost

impl Freeze for NoopHost

impl UnsafeUnpin for NoopHost

impl Unpin for NoopHost

impl UnwindSafe for NoopHost

impl RefUnwindSafe for NoopHost

Traits §

Host §

pub trait runx_runtime::host::Host { /* ... */ }

Required Methods §

report

fn report(self: &mut Self, event: ExecutionEvent) -> Result<(), RuntimeError>

Provided Methods §

resolve

fn resolve( self: &mut Self, _request: ResolutionRequest ) -> Result<Option<ResolutionResponse>, RuntimeError>

log

fn log(self: &mut Self, _message: String) -> Result<(), RuntimeError>

Trait Implementations §

impl Host for NoopHost

report

fn report(self: &mut Self, _event: ExecutionEvent) -> Result<(), RuntimeError>