[][src]Enum elrond_wasm::io::finish::SCResult

#[must_use]pub enum SCResult<T> {
    Ok(T),
    Err(SCError),
}

Default way to optionally return an error from a smart contract endpoint.

Variants

Ok(T)
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]

pub fn unwrap(self) -> 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]

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

impl<T> Sync for SCResult<T> where
    T: Sync

impl<T> Unpin for SCResult<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.