Struct concordium_std::ExternReturnValue
source · pub struct ExternReturnValue { /* private fields */ }
Expand description
A type representing the return value of contract init or receive method. The intention is that this type is manipulated using methods of the Write trait. In particular it can be used as a sink to serialize values into.
Implementations§
Trait Implementations§
source§impl Write for ExternReturnValue
impl Write for ExternReturnValue
Return values are intended to be produced by writing to the ExternReturnValue buffer, either in a high-level interface via serialization, or in a low-level interface by manually using the Write trait’s interface.
type Err = ()
source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Err>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Err>
Try to write the given buffer into the output stream. If writes are
successful returns the number of bytes written.