Enum soroban_contracts::token::TokenError
source · pub enum TokenError {
InternalError,
AlreadyInitializedError,
UnauthorizedError,
NegativeAmountError,
AllowanceError,
BalanceError,
BalanceDeauthorizedError,
OverflowError,
TrustlineMissingError,
}Variants§
InternalError
AlreadyInitializedError
NegativeAmountError
AllowanceError
BalanceError
OverflowError
TrustlineMissingError
Trait Implementations§
source§impl Clone for TokenError
impl Clone for TokenError
source§fn clone(&self) -> TokenError
fn clone(&self) -> TokenError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TokenError
impl Debug for TokenError
source§impl From<&TokenError> for Status
impl From<&TokenError> for Status
source§fn from(val: &TokenError) -> Status
fn from(val: &TokenError) -> Status
Converts to this type from the input type.
source§impl From<TokenError> for Status
impl From<TokenError> for Status
source§fn from(val: TokenError) -> Status
fn from(val: TokenError) -> Status
Converts to this type from the input type.
source§impl Ord for TokenError
impl Ord for TokenError
source§fn cmp(&self, other: &TokenError) -> Ordering
fn cmp(&self, other: &TokenError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TokenError> for TokenError
impl PartialEq<TokenError> for TokenError
source§fn eq(&self, other: &TokenError) -> bool
fn eq(&self, other: &TokenError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<TokenError> for TokenError
impl PartialOrd<TokenError> for TokenError
source§fn partial_cmp(&self, other: &TokenError) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<&Status> for TokenError
impl TryFrom<&Status> for TokenError
source§impl TryFrom<Status> for TokenError
impl TryFrom<Status> for TokenError
source§impl TryFromVal<Env, RawVal> for TokenError
impl TryFromVal<Env, RawVal> for TokenError
source§impl TryFromVal<Env, TokenError> for RawVal
impl TryFromVal<Env, TokenError> for RawVal
type Error = ConversionError
fn try_from_val(env: &Env, val: &TokenError) -> Result<Self, Self::Error>
impl Copy for TokenError
impl Eq for TokenError
impl StructuralEq for TokenError
impl StructuralPartialEq for TokenError
Auto Trait Implementations§
impl RefUnwindSafe for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl UnwindSafe for TokenError
Blanket Implementations§
§impl<T, U, V, E, C> Compare<(T, U, V)> for Cwhere
C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,
impl<T, U, V, E, C> Compare<(T, U, V)> for Cwhere C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,
source§impl<T> Deserialize for Twhere
T: TryFromVal<Env, RawVal>,
impl<T> Deserialize for Twhere T: TryFromVal<Env, RawVal>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.