[−][src]Enum elrond_wasm::io::finish::SCResult
Default way to optionally return an error from a smart contract endpoint.
Variants
Err(SCError)
Implementations
impl<T> SCResult<T>
[src]
pub fn is_ok(&self) -> bool
[src]
pub fn is_err(&self) -> bool
[src]
pub fn ok(self) -> Option<T>
[src]
pub fn err(self) -> Option<SCError>
[src]
impl<T> SCResult<T>
[src]
Trait Implementations
impl<T: Debug> Debug for SCResult<T>
[src]
impl<'a, A, BigInt, BigUint, T> EndpointResult<'a, A, BigInt, BigUint> for SCResult<T> where
T: EndpointResult<'a, A, BigInt, BigUint>,
BigInt: BigIntApi<BigUint> + 'static,
BigUint: BigUintApi + 'static,
A: ContractHookApi<BigInt, BigUint> + ContractIOApi<BigInt, BigUint> + 'a,
[src]
T: EndpointResult<'a, A, BigInt, BigUint>,
BigInt: BigIntApi<BigUint> + 'static,
BigUint: BigUintApi + 'static,
A: ContractHookApi<BigInt, BigUint> + ContractIOApi<BigInt, BigUint> + 'a,
impl<T: Eq> Eq for SCResult<T>
[src]
impl<T: PartialEq> PartialEq<SCResult<T>> for SCResult<T>
[src]
impl<T> StructuralEq for SCResult<T>
[src]
impl<T> StructuralPartialEq for SCResult<T>
[src]
Auto Trait Implementations
impl<T> Send for SCResult<T> where
T: Send,
T: Send,
impl<T> Sync for SCResult<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SCResult<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, A, BigInt, BigUint, T> EndpointResult<'a, A, BigInt, BigUint> for T where
A: ContractHookApi<BigInt, BigUint> + ContractIOApi<BigInt, BigUint> + 'a,
BigInt: BigIntApi<BigUint> + 'static,
BigUint: BigUintApi + 'static,
T: Encode,
[src]
A: ContractHookApi<BigInt, BigUint> + ContractIOApi<BigInt, BigUint> + 'a,
BigInt: BigIntApi<BigUint> + 'static,
BigUint: BigUintApi + 'static,
T: Encode,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,