pub struct ConstructorOutputValue<T>(/* private fields */);
Expand description
Stores the actual value of the constructor return type.
§Note
Currently the only allowed types are ()
and Result<(), E>
where E
is some unspecified error type.
If the contract initializer returns Result::Err
the utility
method that is used to initialize an ink! smart contract will
revert the state of the contract instantiation.
Implementations§
source§impl<T> ConstructorOutputValue<T>
impl<T> ConstructorOutputValue<T>
Trait Implementations§
source§impl<C> ConstructorOutput<C> for ConstructorOutputValue<C>
impl<C> ConstructorOutput<C> for ConstructorOutputValue<C>
source§impl<C, E> ConstructorOutput<C> for ConstructorOutputValue<Result<C, E>>
impl<C, E> ConstructorOutput<C> for ConstructorOutputValue<Result<C, E>>
Auto Trait Implementations§
impl<T> Freeze for ConstructorOutputValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstructorOutputValue<T>where
T: RefUnwindSafe,
impl<T> Send for ConstructorOutputValue<T>where
T: Send,
impl<T> Sync for ConstructorOutputValue<T>where
T: Sync,
impl<T> Unpin for ConstructorOutputValue<T>where
T: Unpin,
impl<T> UnwindSafe for ConstructorOutputValue<T>where
T: UnwindSafe,
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