[][src]Trait sp_runtime_interface::pass_by::PassByInner

pub trait PassByInner: Sized {
    type Inner: RIType;
    fn into_inner(self) -> Self::Inner;
fn inner(&self) -> &Self::Inner;
fn from_inner(inner: Self::Inner) -> Self; }
[]

Trait that needs to be implemented by a type that should be passed between wasm and the host, by using the inner type. See Inner for more information.

Associated Types

type Inner: RIType[]

The inner type that is wrapped by Self.

Required methods

fn into_inner(self) -> Self::Inner[]

Consumes self and returns the inner type.

fn inner(&self) -> &Self::Inner[]

Returns the reference to the inner type.

fn from_inner(inner: Self::Inner) -> Self[]

Construct Self from the given inner.

Implementations on Foreign Types

impl PassByInner for H160[src][]

type Inner = [u8; 20]

impl PassByInner for H256[src][]

type Inner = [u8; 32]

impl PassByInner for H512[src][]

type Inner = [u8; 64]

Implementors

impl PassByInner for KeyTypeId

impl PassByInner for Public

impl PassByInner for Signature

impl PassByInner for Public

impl PassByInner for Signature

impl PassByInner for Public

impl PassByInner for Signature

impl PassByInner for HttpRequestId

impl PassByInner for OpaquePeerId

impl PassByInner for OpaqueMultiaddr

impl PassByInner for Timestamp

impl PassByInner for Duration