Struct concordium_std::Reject[][src]

#[repr(transparent)]
pub struct Reject { pub error_code: NonZeroI32, }
Expand description

An error message, signalling rejection of a smart contract invocation. The client will see the error code as a reject reason; if a schema is provided, the error message corresponding to the error code will be displayed. The valid range for an error code is from i32::MIN to -1.

Fields

error_code: NonZeroI32

Implementations

impl Reject[src]

pub fn new(x: i32) -> Option<Self>[src]

This returns None for all values >= 0 and Some otherwise.

Trait Implementations

impl Debug for Reject[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Reject[src]

Default error is i32::MIN.

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl From<()> for Reject[src]

fn from(_: ()) -> Self[src]

Performs the conversion.

impl From<LogError> for Reject[src]

Full is mapped to i32::MIN+3, Malformed is mapped to i32::MIN+4.

fn from(le: LogError) -> Self[src]

Performs the conversion.

impl From<NewContractNameError> for Reject[src]

MissingInitPrefix is mapped to i32::MIN + 5, and TooLong is mapped to i32::MIN + 6.

fn from(nre: NewContractNameError) -> Self[src]

Performs the conversion.

impl From<NewReceiveNameError> for Reject[src]

MissingDotSeparator is mapped to i32::MIN + 7, and TooLong is mapped to i32::MIN + 8.

fn from(nre: NewReceiveNameError) -> Self[src]

Performs the conversion.

impl From<ParseError> for Reject[src]

fn from(_: ParseError) -> Self[src]

Performs the conversion.

impl PartialEq<Reject> for Reject[src]

fn eq(&self, other: &Reject) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Reject) -> bool[src]

This method tests for !=.

impl Eq for Reject[src]

impl StructuralEq for Reject[src]

impl StructuralPartialEq for Reject[src]

Auto Trait Implementations

impl RefUnwindSafe for Reject

impl Send for Reject

impl Sync for Reject

impl Unpin for Reject

impl UnwindSafe for Reject

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.