Enum sp_tracing::WasmValue [−][src]
pub enum WasmValue { U8(u8), I8(i8), U32(u32), I32(i32), I64(i64), U64(u64), Bool(bool), Str(Vec<u8>), Formatted(Vec<u8>), Encoded(Vec<u8>), }
Expand description
A paramter value provided to the span/event
Variants
U8(u8)
I8(i8)
U32(u32)
I32(i32)
I64(i64)
U64(u64)
Bool(bool)
Debug or Display call, this is most-likely a print-able UTF8 String
SCALE CODEC encoded object – the name should allow the received to know how to decode this.
Trait Implementations
Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Convert self to a slice and append it to the destination.
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Auto Trait Implementations
impl RefUnwindSafe for WasmValue
impl UnwindSafe for WasmValue
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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<Rc<T>> for T where
T: Encode,