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.
Typically referred to via the alias ReturnValue
.
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.
Auto Trait Implementations§
impl RefUnwindSafe for ExternReturnValue
impl Send for ExternReturnValue
impl Sync for ExternReturnValue
impl Unpin for ExternReturnValue
impl UnwindSafe for ExternReturnValue
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