Enum stellar_xdr::next::ScErrorCode
source · #[repr(i32)]pub enum ScErrorCode {
ArithDomain,
IndexBounds,
InvalidInput,
MissingValue,
ExistingValue,
ExceededLimit,
InvalidAction,
InternalError,
UnexpectedType,
UnexpectedSize,
}Available on crate feature
next only.Variants§
ArithDomain
IndexBounds
InvalidInput
MissingValue
ExistingValue
ExceededLimit
InvalidAction
InternalError
UnexpectedType
UnexpectedSize
Implementations§
source§impl ScErrorCode
impl ScErrorCode
pub const VARIANTS: [ScErrorCode; 10] = _
pub const VARIANTS_STR: [&'static str; 10] = _
pub const fn name(&self) -> &'static str
pub const fn variants() -> [ScErrorCode; 10]
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ScErrorCode
impl<'arbitrary> Arbitrary<'arbitrary> for ScErrorCode
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl Clone for ScErrorCode
impl Clone for ScErrorCode
source§fn clone(&self) -> ScErrorCode
fn clone(&self) -> ScErrorCode
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 ScErrorCode
impl Debug for ScErrorCode
source§impl<'de> Deserialize<'de> for ScErrorCode
impl<'de> Deserialize<'de> for ScErrorCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ScErrorCode
impl Display for ScErrorCode
source§impl From<ScErrorCode> for i32
impl From<ScErrorCode> for i32
source§fn from(e: ScErrorCode) -> Self
fn from(e: ScErrorCode) -> Self
Converts to this type from the input type.
source§impl Hash for ScErrorCode
impl Hash for ScErrorCode
source§impl Ord for ScErrorCode
impl Ord for ScErrorCode
source§fn cmp(&self, other: &ScErrorCode) -> Ordering
fn cmp(&self, other: &ScErrorCode) -> 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<ScErrorCode> for ScErrorCode
impl PartialEq<ScErrorCode> for ScErrorCode
source§fn eq(&self, other: &ScErrorCode) -> bool
fn eq(&self, other: &ScErrorCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ScErrorCode> for ScErrorCode
impl PartialOrd<ScErrorCode> for ScErrorCode
source§fn partial_cmp(&self, other: &ScErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ScErrorCode) -> 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 ReadXdr for ScErrorCode
impl ReadXdr for ScErrorCode
source§fn read_xdr(r: &mut impl Read) -> Result<Self, Error>
fn read_xdr(r: &mut impl Read) -> Result<Self, Error>
Available on crate feature
std only.Read the XDR and construct the type. Read more
source§fn read_xdr_base64(r: &mut impl Read) -> Result<Self, Error>
fn read_xdr_base64(r: &mut impl Read) -> Result<Self, Error>
Available on crate feature
base64 only.Construct the type from the XDR bytes base64 encoded. Read more
source§fn read_xdr_to_end(r: &mut impl Read) -> Result<Self, Error>
fn read_xdr_to_end(r: &mut impl Read) -> Result<Self, Error>
Available on crate feature
std only.Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
source§fn read_xdr_base64_to_end(r: &mut impl Read) -> Result<Self, Error>
fn read_xdr_base64_to_end(r: &mut impl Read) -> Result<Self, Error>
Available on crate feature
base64 only.Construct the type from the XDR bytes base64 encoded. Read more
source§fn read_xdr_into(&mut self, r: &mut impl Read) -> Result<(), Error>
fn read_xdr_into(&mut self, r: &mut impl Read) -> Result<(), Error>
Available on crate feature
std only.Read the XDR and construct the type. Read more
source§fn read_xdr_into_to_end(&mut self, r: &mut impl Read) -> Result<(), Error>
fn read_xdr_into_to_end(&mut self, r: &mut impl Read) -> Result<(), Error>
Available on crate feature
std only.Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
source§fn read_xdr_iter<R: Read>(r: &mut R) -> ReadXdrIter<&mut R, Self> ⓘ
fn read_xdr_iter<R: Read>(r: &mut R) -> ReadXdrIter<&mut R, Self> ⓘ
Available on crate feature
std only.Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
source§fn read_xdr_base64_iter<R: Read>(
r: &mut R
) -> ReadXdrIter<DecoderReader<'_, R>, Self> ⓘ
fn read_xdr_base64_iter<R: Read>( r: &mut R ) -> ReadXdrIter<DecoderReader<'_, R>, Self> ⓘ
Available on crate feature
base64 only.Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type.
source§impl Serialize for ScErrorCode
impl Serialize for ScErrorCode
source§impl TryFrom<i32> for ScErrorCode
impl TryFrom<i32> for ScErrorCode
source§impl Variants<ScErrorCode> for ScErrorCode
impl Variants<ScErrorCode> for ScErrorCode
fn variants() -> Iter<'static, ScErrorCode>
source§impl WriteXdr for ScErrorCode
impl WriteXdr for ScErrorCode
impl Copy for ScErrorCode
impl Enum for ScErrorCode
impl Eq for ScErrorCode
impl StructuralEq for ScErrorCode
impl StructuralPartialEq for ScErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ScErrorCode
impl Send for ScErrorCode
impl Sync for ScErrorCode
impl Unpin for ScErrorCode
impl UnwindSafe for ScErrorCode
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