Enum sp_wasm_interface::ReturnValue[][src]

pub enum ReturnValue {

Typed value that can be returned from a function.

Basically a TypedValue plus Unit, for functions which return nothing.



For returning nothing.


For returning some concrete value.


impl ReturnValue[src]

pub const ENCODED_MAX_SIZE: usize[src]

Maximum number of bytes ReturnValue might occupy when serialized with SCALE.

Breakdown: 1 byte for encoding unit/value variant 1 byte for encoding value type 8 bytes for encoding the biggest value types available in wasm: f64, i64.

Trait Implementations

impl Clone for ReturnValue[src]

impl Copy for ReturnValue[src]

impl Debug for ReturnValue[src]

impl Decode for ReturnValue[src]

impl Encode for ReturnValue[src]

impl EncodeLike<ReturnValue> for ReturnValue[src]

impl From<Value> for ReturnValue[src]

impl PartialEq<ReturnValue> for ReturnValue[src]

impl StructuralPartialEq for ReturnValue[src]

Auto Trait Implementations

impl RefUnwindSafe for ReturnValue

impl Send for ReturnValue

impl Sync for ReturnValue

impl Unpin for ReturnValue

impl UnwindSafe for ReturnValue

Blanket Implementations

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

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

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

impl<S> Codec for S where
    S: Decode + Encode, 

impl<T> DecodeAll for T where
    T: Decode, 

impl<T> DecodeLimit for T where
    T: Decode, 

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode, 

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode, 

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode, 

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode, 

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode, 

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: ToOwned + Encode, 

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode, 

impl<T> From<T> for T[src]

impl<S> FullCodec for S where
    S: Decode + FullEncode, 

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 

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

impl<T> KeyedVec for T where
    T: Codec, 

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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.