Trait sp_runtime_interface::host::FromFFIValue[][src]

pub trait FromFFIValue: RIType {
    type SelfInstance;
    fn from_ffi_value(
        context: &mut dyn FunctionContext,
        arg: Self::FFIType
    ) -> Result<Self::SelfInstance>; }

Something that can be created from a ffi value. Implementations are safe to assume that the arg given to from_ffi_value is only generated by the corresponding wasm::IntoFFIValue implementation.

Associated Types

type SelfInstance[src]

As Self can be an unsized type, it needs to be represented by a sized type at the host. This SelfInstance is the sized type.

Loading content...

Required methods

fn from_ffi_value(
    context: &mut dyn FunctionContext,
    arg: Self::FFIType
) -> Result<Self::SelfInstance>
[src]

Create SelfInstance from the given

Loading content...

Implementations on Foreign Types

impl FromFFIValue for u8[src]

impl FromFFIValue for u16[src]

impl FromFFIValue for u32[src]

impl FromFFIValue for u64[src]

impl FromFFIValue for i8[src]

impl FromFFIValue for i16[src]

impl FromFFIValue for i32[src]

impl FromFFIValue for i64[src]

impl FromFFIValue for bool[src]

impl<T: 'static + Decode> FromFFIValue for Vec<T>[src]

type SelfInstance = Vec<T>

impl<T: 'static + Decode> FromFFIValue for [T][src]

type SelfInstance = Vec<T>

impl FromFFIValue for [u8; 1][src]

type SelfInstance = [u8; 1]

impl FromFFIValue for [u8; 2][src]

type SelfInstance = [u8; 2]

impl FromFFIValue for [u8; 3][src]

type SelfInstance = [u8; 3]

impl FromFFIValue for [u8; 4][src]

type SelfInstance = [u8; 4]

impl FromFFIValue for [u8; 5][src]

type SelfInstance = [u8; 5]

impl FromFFIValue for [u8; 6][src]

type SelfInstance = [u8; 6]

impl FromFFIValue for [u8; 7][src]

type SelfInstance = [u8; 7]

impl FromFFIValue for [u8; 8][src]

type SelfInstance = [u8; 8]

impl FromFFIValue for [u8; 9][src]

type SelfInstance = [u8; 9]

impl FromFFIValue for [u8; 10][src]

type SelfInstance = [u8; 10]

impl FromFFIValue for [u8; 11][src]

type SelfInstance = [u8; 11]

impl FromFFIValue for [u8; 12][src]

type SelfInstance = [u8; 12]

impl FromFFIValue for [u8; 13][src]

type SelfInstance = [u8; 13]

impl FromFFIValue for [u8; 14][src]

type SelfInstance = [u8; 14]

impl FromFFIValue for [u8; 15][src]

type SelfInstance = [u8; 15]

impl FromFFIValue for [u8; 16][src]

type SelfInstance = [u8; 16]

impl FromFFIValue for [u8; 17][src]

type SelfInstance = [u8; 17]

impl FromFFIValue for [u8; 18][src]

type SelfInstance = [u8; 18]

impl FromFFIValue for [u8; 19][src]

type SelfInstance = [u8; 19]

impl FromFFIValue for [u8; 20][src]

type SelfInstance = [u8; 20]

impl FromFFIValue for [u8; 21][src]

type SelfInstance = [u8; 21]

impl FromFFIValue for [u8; 22][src]

type SelfInstance = [u8; 22]

impl FromFFIValue for [u8; 23][src]

type SelfInstance = [u8; 23]

impl FromFFIValue for [u8; 24][src]

type SelfInstance = [u8; 24]

impl FromFFIValue for [u8; 25][src]

type SelfInstance = [u8; 25]

impl FromFFIValue for [u8; 26][src]

type SelfInstance = [u8; 26]

impl FromFFIValue for [u8; 27][src]

type SelfInstance = [u8; 27]

impl FromFFIValue for [u8; 28][src]

type SelfInstance = [u8; 28]

impl FromFFIValue for [u8; 29][src]

type SelfInstance = [u8; 29]

impl FromFFIValue for [u8; 30][src]

type SelfInstance = [u8; 30]

impl FromFFIValue for [u8; 31][src]

type SelfInstance = [u8; 31]

impl FromFFIValue for [u8; 32][src]

type SelfInstance = [u8; 32]

impl FromFFIValue for [u8; 33][src]

type SelfInstance = [u8; 33]

impl FromFFIValue for [u8; 34][src]

type SelfInstance = [u8; 34]

impl FromFFIValue for [u8; 35][src]

type SelfInstance = [u8; 35]

impl FromFFIValue for [u8; 36][src]

type SelfInstance = [u8; 36]

impl FromFFIValue for [u8; 37][src]

type SelfInstance = [u8; 37]

impl FromFFIValue for [u8; 38][src]

type SelfInstance = [u8; 38]

impl FromFFIValue for [u8; 39][src]

type SelfInstance = [u8; 39]

impl FromFFIValue for [u8; 40][src]

type SelfInstance = [u8; 40]

impl FromFFIValue for [u8; 41][src]

type SelfInstance = [u8; 41]

impl FromFFIValue for [u8; 42][src]

type SelfInstance = [u8; 42]

impl FromFFIValue for [u8; 43][src]

type SelfInstance = [u8; 43]

impl FromFFIValue for [u8; 44][src]

type SelfInstance = [u8; 44]

impl FromFFIValue for [u8; 45][src]

type SelfInstance = [u8; 45]

impl FromFFIValue for [u8; 46][src]

type SelfInstance = [u8; 46]

impl FromFFIValue for [u8; 47][src]

type SelfInstance = [u8; 47]

impl FromFFIValue for [u8; 48][src]

type SelfInstance = [u8; 48]

impl FromFFIValue for [u8; 49][src]

type SelfInstance = [u8; 49]

impl FromFFIValue for [u8; 50][src]

type SelfInstance = [u8; 50]

impl FromFFIValue for [u8; 51][src]

type SelfInstance = [u8; 51]

impl FromFFIValue for [u8; 52][src]

type SelfInstance = [u8; 52]

impl FromFFIValue for [u8; 53][src]

type SelfInstance = [u8; 53]

impl FromFFIValue for [u8; 54][src]

type SelfInstance = [u8; 54]

impl FromFFIValue for [u8; 55][src]

type SelfInstance = [u8; 55]

impl FromFFIValue for [u8; 56][src]

type SelfInstance = [u8; 56]

impl FromFFIValue for [u8; 57][src]

type SelfInstance = [u8; 57]

impl FromFFIValue for [u8; 58][src]

type SelfInstance = [u8; 58]

impl FromFFIValue for [u8; 59][src]

type SelfInstance = [u8; 59]

impl FromFFIValue for [u8; 60][src]

type SelfInstance = [u8; 60]

impl FromFFIValue for [u8; 61][src]

type SelfInstance = [u8; 61]

impl FromFFIValue for [u8; 62][src]

type SelfInstance = [u8; 62]

impl FromFFIValue for [u8; 63][src]

type SelfInstance = [u8; 63]

impl FromFFIValue for [u8; 64][src]

type SelfInstance = [u8; 64]

impl FromFFIValue for [u8; 65][src]

type SelfInstance = [u8; 65]

impl FromFFIValue for [u8; 66][src]

type SelfInstance = [u8; 66]

impl FromFFIValue for [u8; 67][src]

type SelfInstance = [u8; 67]

impl FromFFIValue for [u8; 68][src]

type SelfInstance = [u8; 68]

impl FromFFIValue for [u8; 69][src]

type SelfInstance = [u8; 69]

impl FromFFIValue for [u8; 70][src]

type SelfInstance = [u8; 70]

impl FromFFIValue for [u8; 71][src]

type SelfInstance = [u8; 71]

impl FromFFIValue for [u8; 72][src]

type SelfInstance = [u8; 72]

impl FromFFIValue for [u8; 73][src]

type SelfInstance = [u8; 73]

impl FromFFIValue for [u8; 74][src]

type SelfInstance = [u8; 74]

impl FromFFIValue for [u8; 75][src]

type SelfInstance = [u8; 75]

impl FromFFIValue for [u8; 76][src]

type SelfInstance = [u8; 76]

impl FromFFIValue for [u8; 77][src]

type SelfInstance = [u8; 77]

impl FromFFIValue for [u8; 78][src]

type SelfInstance = [u8; 78]

impl FromFFIValue for [u8; 79][src]

type SelfInstance = [u8; 79]

impl FromFFIValue for [u8; 80][src]

type SelfInstance = [u8; 80]

impl FromFFIValue for [u8; 81][src]

type SelfInstance = [u8; 81]

impl FromFFIValue for [u8; 82][src]

type SelfInstance = [u8; 82]

impl FromFFIValue for [u8; 83][src]

type SelfInstance = [u8; 83]

impl FromFFIValue for [u8; 84][src]

type SelfInstance = [u8; 84]

impl FromFFIValue for [u8; 85][src]

type SelfInstance = [u8; 85]

impl FromFFIValue for [u8; 86][src]

type SelfInstance = [u8; 86]

impl FromFFIValue for [u8; 87][src]

type SelfInstance = [u8; 87]

impl FromFFIValue for [u8; 88][src]

type SelfInstance = [u8; 88]

impl FromFFIValue for [u8; 89][src]

type SelfInstance = [u8; 89]

impl FromFFIValue for [u8; 90][src]

type SelfInstance = [u8; 90]

impl FromFFIValue for [u8; 91][src]

type SelfInstance = [u8; 91]

impl FromFFIValue for [u8; 92][src]

type SelfInstance = [u8; 92]

impl FromFFIValue for [u8; 93][src]

type SelfInstance = [u8; 93]

impl FromFFIValue for [u8; 94][src]

type SelfInstance = [u8; 94]

impl FromFFIValue for [u8; 95][src]

type SelfInstance = [u8; 95]

impl FromFFIValue for [u8; 96][src]

type SelfInstance = [u8; 96]

impl FromFFIValue for str[src]

impl FromFFIValue for u128[src]

type SelfInstance = u128

impl FromFFIValue for i128[src]

type SelfInstance = i128

Loading content...

Implementors

impl<T: PassBy> FromFFIValue for T[src]

type SelfInstance = Self

impl<T: PointerType> FromFFIValue for Pointer<T>[src]

type SelfInstance = Self

Loading content...