pub enum Value {
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Bytes(Vec<u8>),
}Expand description
A value passed across the sandbox boundary. Intentionally a small
set — structured data crosses via a length-prefixed byte payload
(Bytes) rather than being encoded into the type system.
Variants§
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Bytes(Vec<u8>)
Opaque byte slice. Marshaled as a JSON array of byte values on the wire.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more