Trait sp_runtime_interface::pass_by::PassByInner [−][src]
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; }
Expand description
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
Required methods
fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Consumes self
and returns the inner type.
fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Construct Self
from the given inner
.
Implementations on Foreign Types
Implementors
impl PassByInner for KeyTypeId
impl PassByInner for KeyTypeId
impl PassByInner for Public
impl PassByInner for Public
impl PassByInner for Signature
impl PassByInner for Signature
impl PassByInner for Public
impl PassByInner for Public
impl PassByInner for Signature
impl PassByInner for Signature
impl PassByInner for Public
impl PassByInner for Public
impl PassByInner for Signature
impl PassByInner for Signature
impl PassByInner for HttpRequestId
impl PassByInner for HttpRequestId
impl PassByInner for OpaqueMultiaddr
impl PassByInner for OpaqueMultiaddr
impl PassByInner for Timestamp
impl PassByInner for Timestamp
impl PassByInner for Duration
impl PassByInner for Duration
impl PassByInner for OpaquePeerId
impl PassByInner for OpaquePeerId