[−][src]Enum sp_wasm_interface::ReturnValue 
Typed value that can be returned from a function.
Basically a TypedValue plus Unit, for functions which return nothing.
Variants
For returning nothing.
Value(Value)For returning some concrete value.
Implementations
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]
fn clone(&self) -> ReturnValue[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ReturnValue[src]
impl Debug for ReturnValue[src]
impl Decode for ReturnValue[src]
impl Encode for ReturnValue[src]
fn encode_to<EncOut: Output>(&self, dest: &mut EncOut)[src]
fn size_hint(&self) -> usize[src]
fn encode(&self) -> Vec<u8>[src]
fn using_encoded<R, F>(&self, f: F) -> R where
    F: FnOnce(&[u8]) -> R, [src]
F: FnOnce(&[u8]) -> R,
impl EncodeLike<ReturnValue> for ReturnValue[src]
impl From<Value> for ReturnValue[src]
fn from(v: Value) -> ReturnValue[src]
impl PartialEq<ReturnValue> for ReturnValue[src]
fn eq(&self, other: &ReturnValue) -> bool[src]
fn ne(&self, other: &ReturnValue) -> bool[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, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<S> Codec for S where
    S: Encode + Decode, [src]
S: Encode + Decode,
impl<T, X> Decode for X where
    T: Decode + Into<X>,
    X: WrapperTypeDecode<Wrapped = T>, [src]
T: Decode + Into<X>,
X: WrapperTypeDecode<Wrapped = T>,
impl<T> DecodeAll for T where
    T: Decode, [src]
T: Decode,
impl<T, X> Encode for X where
    T: Encode + ?Sized,
    X: WrapperTypeEncode<Target = T>, [src]
T: Encode + ?Sized,
X: WrapperTypeEncode<Target = T>,
fn size_hint(&self) -> usize[src]
fn using_encoded<R, F>(&self, f: F) -> R where
    F: FnOnce(&[u8]) -> R, [src]
F: FnOnce(&[u8]) -> R,
fn encode(&self) -> Vec<u8>[src]
fn encode_to<W>(&self, dest: &mut W) where
    W: Output, [src]
W: Output,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
    T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Box<T>> for T where
    T: Encode, [src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned, [src]
T: Encode + ToOwned,
impl<T> EncodeLike<Rc<T>> for T where
    T: Encode, [src]
T: Encode,
impl<T> From<T> for T[src]
impl<S> FullCodec for S where
    S: Decode + FullEncode, [src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, [src]
S: Encode + EncodeLike<S>,
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> KeyedVec for T where
    T: Codec, [src]
T: Codec,
impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,