pub struct WasmEncodedPayload { /* private fields */ }Expand description
One encoded revolution at the BRS1 boundary: a shared codec/container
description plus only the bytes that vary per revolution (the headerless
codec payload body). Mirrors the EncodedPayload shape from the WASM
headerless-ECDC contract.
Implementations§
Trait Implementations§
Source§impl From<WasmEncodedPayload> for JsValue
impl From<WasmEncodedPayload> for JsValue
Source§fn from(value: WasmEncodedPayload) -> Self
fn from(value: WasmEncodedPayload) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmEncodedPayload
impl FromWasmAbi for WasmEncodedPayload
Source§impl IntoWasmAbi for WasmEncodedPayload
impl IntoWasmAbi for WasmEncodedPayload
Source§impl LongRefFromWasmAbi for WasmEncodedPayload
impl LongRefFromWasmAbi for WasmEncodedPayload
Source§type Abi = WasmPtr<WasmRefCell<WasmEncodedPayload>>
type Abi = WasmPtr<WasmRefCell<WasmEncodedPayload>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WasmEncodedPayload>
type Anchor = RcRef<WasmEncodedPayload>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for WasmEncodedPayload
impl RefFromWasmAbi for WasmEncodedPayload
Source§type Abi = WasmPtr<WasmRefCell<WasmEncodedPayload>>
type Abi = WasmPtr<WasmRefCell<WasmEncodedPayload>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WasmEncodedPayload>
type Anchor = RcRef<WasmEncodedPayload>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for WasmEncodedPayload
impl RefMutFromWasmAbi for WasmEncodedPayload
Source§type Abi = WasmPtr<WasmRefCell<WasmEncodedPayload>>
type Abi = WasmPtr<WasmRefCell<WasmEncodedPayload>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WasmEncodedPayload>
type Anchor = RcRefMut<WasmEncodedPayload>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for WasmEncodedPayload
impl SupportsInstanceProperty for WasmEncodedPayload
impl SupportsStaticProperty for WasmEncodedPayload
Source§impl TryFromJsValue for WasmEncodedPayload
impl TryFromJsValue for WasmEncodedPayload
Source§impl VectorFromWasmAbi for WasmEncodedPayload
impl VectorFromWasmAbi for WasmEncodedPayload
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmEncodedPayload]>
Source§impl VectorIntoWasmAbi for WasmEncodedPayload
impl VectorIntoWasmAbi for WasmEncodedPayload
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmEncodedPayload]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmEncodedPayload
impl WasmDescribeVector for WasmEncodedPayload
Auto Trait Implementations§
impl Freeze for WasmEncodedPayload
impl RefUnwindSafe for WasmEncodedPayload
impl Send for WasmEncodedPayload
impl Sync for WasmEncodedPayload
impl Unpin for WasmEncodedPayload
impl UnsafeUnpin for WasmEncodedPayload
impl UnwindSafe for WasmEncodedPayload
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.