#[repr(u64)]
pub enum StatusCode {
Show 176 variants UNKNOWN_VALIDATION_STATUS = 0, INVALID_SIGNATURE = 1, INVALID_AUTH_KEY = 2, SEQUENCE_NUMBER_TOO_OLD = 3, SEQUENCE_NUMBER_TOO_NEW = 4, INSUFFICIENT_BALANCE_FOR_TRANSACTION_FEE = 5, TRANSACTION_EXPIRED = 6, SENDING_ACCOUNT_DOES_NOT_EXIST = 7, REJECTED_WRITE_SET = 8, INVALID_WRITE_SET = 9, EXCEEDED_MAX_TRANSACTION_SIZE = 10, UNKNOWN_SCRIPT = 11, UNKNOWN_MODULE = 12, MAX_GAS_UNITS_EXCEEDS_MAX_GAS_UNITS_BOUND = 13, MAX_GAS_UNITS_BELOW_MIN_TRANSACTION_GAS_UNITS = 14, GAS_UNIT_PRICE_BELOW_MIN_BOUND = 15, GAS_UNIT_PRICE_ABOVE_MAX_BOUND = 16, INVALID_GAS_SPECIFIER = 17, SENDING_ACCOUNT_FROZEN = 18, UNABLE_TO_DESERIALIZE_ACCOUNT = 19, CURRENCY_INFO_DOES_NOT_EXIST = 20, INVALID_MODULE_PUBLISHER = 21, NO_ACCOUNT_ROLE = 22, BAD_CHAIN_ID = 23, SEQUENCE_NUMBER_TOO_BIG = 24, BAD_TRANSACTION_FEE_CURRENCY = 25, FEATURE_UNDER_GATING = 26, CFX_UNEXPECTED_TX = 27, CFX_INVALID_TX = 28, ELECTION_NON_EXISITENT_NODE = 29, ELECTION_NON_ACCEPTED_NODE = 30, ELECTION_TERGET_TERM_NOT_OPEN = 31, ELECTION_WITHOUT_VOTES = 32, PIVOT_DECISION_HEIGHT_TOO_OLD = 33, UNKNOWN_VERIFICATION_ERROR = 1_000, INDEX_OUT_OF_BOUNDS = 1_001, INVALID_SIGNATURE_TOKEN = 1_003, RECURSIVE_STRUCT_DEFINITION = 1_005, FIELD_MISSING_TYPE_ABILITY = 1_006, INVALID_FALL_THROUGH = 1_007, NEGATIVE_STACK_SIZE_WITHIN_BLOCK = 1_009, INVALID_MAIN_FUNCTION_SIGNATURE = 1_011, DUPLICATE_ELEMENT = 1_012, INVALID_MODULE_HANDLE = 1_013, UNIMPLEMENTED_HANDLE = 1_014, LOOKUP_FAILED = 1_017, TYPE_MISMATCH = 1_020, MISSING_DEPENDENCY = 1_021, POP_WITHOUT_DROP_ABILITY = 1_023, BR_TYPE_MISMATCH_ERROR = 1_025, ABORT_TYPE_MISMATCH_ERROR = 1_026, STLOC_TYPE_MISMATCH_ERROR = 1_027, STLOC_UNSAFE_TO_DESTROY_ERROR = 1_028, UNSAFE_RET_LOCAL_OR_RESOURCE_STILL_BORROWED = 1_029, RET_TYPE_MISMATCH_ERROR = 1_030, RET_BORROWED_MUTABLE_REFERENCE_ERROR = 1_031, FREEZEREF_TYPE_MISMATCH_ERROR = 1_032, FREEZEREF_EXISTS_MUTABLE_BORROW_ERROR = 1_033, BORROWFIELD_TYPE_MISMATCH_ERROR = 1_034, BORROWFIELD_BAD_FIELD_ERROR = 1_035, BORROWFIELD_EXISTS_MUTABLE_BORROW_ERROR = 1_036, COPYLOC_UNAVAILABLE_ERROR = 1_037, COPYLOC_WITHOUT_COPY_ABILITY = 1_038, COPYLOC_EXISTS_BORROW_ERROR = 1_039, MOVELOC_UNAVAILABLE_ERROR = 1_040, MOVELOC_EXISTS_BORROW_ERROR = 1_041, BORROWLOC_REFERENCE_ERROR = 1_042, BORROWLOC_UNAVAILABLE_ERROR = 1_043, BORROWLOC_EXISTS_BORROW_ERROR = 1_044, CALL_TYPE_MISMATCH_ERROR = 1_045, CALL_BORROWED_MUTABLE_REFERENCE_ERROR = 1_046, PACK_TYPE_MISMATCH_ERROR = 1_047, UNPACK_TYPE_MISMATCH_ERROR = 1_048, READREF_TYPE_MISMATCH_ERROR = 1_049, READREF_WITHOUT_COPY_ABILITY = 1_050, READREF_EXISTS_MUTABLE_BORROW_ERROR = 1_051, WRITEREF_TYPE_MISMATCH_ERROR = 1_052, WRITEREF_WITHOUT_DROP_ABILITY = 1_053, WRITEREF_EXISTS_BORROW_ERROR = 1_054, WRITEREF_NO_MUTABLE_REFERENCE_ERROR = 1_055, INTEGER_OP_TYPE_MISMATCH_ERROR = 1_056, BOOLEAN_OP_TYPE_MISMATCH_ERROR = 1_057, EQUALITY_OP_TYPE_MISMATCH_ERROR = 1_058, EXISTS_WITHOUT_KEY_ABILITY_OR_BAD_ARGUMENT = 1_059, BORROWGLOBAL_TYPE_MISMATCH_ERROR = 1_060, BORROWGLOBAL_WITHOUT_KEY_ABILITY = 1_061, MOVEFROM_TYPE_MISMATCH_ERROR = 1_062, MOVEFROM_WITHOUT_KEY_ABILITY = 1_063, MOVETO_TYPE_MISMATCH_ERROR = 1_064, MOVETO_WITHOUT_KEY_ABILITY = 1_065, MODULE_ADDRESS_DOES_NOT_MATCH_SENDER = 1_067, NO_MODULE_HANDLES = 1_068, POSITIVE_STACK_SIZE_AT_BLOCK_END = 1_069, MISSING_ACQUIRES_ANNOTATION = 1_070, EXTRANEOUS_ACQUIRES_ANNOTATION = 1_071, DUPLICATE_ACQUIRES_ANNOTATION = 1_072, INVALID_ACQUIRES_ANNOTATION = 1_073, GLOBAL_REFERENCE_ERROR = 1_074, CONSTRAINT_NOT_SATISFIED = 1_075, NUMBER_OF_TYPE_ARGUMENTS_MISMATCH = 1_076, LOOP_IN_INSTANTIATION_GRAPH = 1_077, ZERO_SIZED_STRUCT = 1_080, LINKER_ERROR = 1_081, INVALID_CONSTANT_TYPE = 1_082, MALFORMED_CONSTANT_DATA = 1_083, EMPTY_CODE_UNIT = 1_084, INVALID_LOOP_SPLIT = 1_085, INVALID_LOOP_BREAK = 1_086, INVALID_LOOP_CONTINUE = 1_087, UNSAFE_RET_UNUSED_VALUES_WITHOUT_DROP = 1_088, TOO_MANY_LOCALS = 1_089, GENERIC_MEMBER_OPCODE_MISMATCH = 1_090, FUNCTION_RESOLUTION_FAILURE = 1_091, INVALID_OPERATION_IN_SCRIPT = 1_094, DUPLICATE_MODULE_NAME = 1_095, BACKWARD_INCOMPATIBLE_MODULE_UPDATE = 1_096, CYCLIC_MODULE_DEPENDENCY = 1_097, NUMBER_OF_ARGUMENTS_MISMATCH = 1_098, INVALID_PARAM_TYPE_FOR_DESERIALIZATION = 1_099, FAILED_TO_DESERIALIZE_ARGUMENT = 1_100, NUMBER_OF_SIGNER_ARGUMENTS_MISMATCH = 1_101, CALLED_SCRIPT_VISIBLE_FROM_NON_SCRIPT_VISIBLE = 1_102, EXECUTE_SCRIPT_FUNCTION_CALLED_ON_NON_SCRIPT_VISIBLE = 1_103, INVALID_FRIEND_DECL_WITH_SELF = 1_104, INVALID_FRIEND_DECL_WITH_MODULES_OUTSIDE_ACCOUNT_ADDRESS = 1_105, INVALID_FRIEND_DECL_WITH_MODULES_IN_DEPENDENCIES = 1_106, CYCLIC_MODULE_FRIENDSHIP = 1_107, UNKNOWN_INVARIANT_VIOLATION_ERROR = 2_000, EMPTY_VALUE_STACK = 2_003, PC_OVERFLOW = 2_005, VERIFICATION_ERROR = 2_006, STORAGE_ERROR = 2_008, INTERNAL_TYPE_ERROR = 2_009, EVENT_KEY_MISMATCH = 2_010, UNREACHABLE = 2_011, VM_STARTUP_FAILURE = 2_012, UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION = 2_015, VERIFIER_INVARIANT_VIOLATION = 2_016, UNEXPECTED_VERIFIER_ERROR = 2_017, UNEXPECTED_DESERIALIZATION_ERROR = 2_018, FAILED_TO_SERIALIZE_WRITE_SET_CHANGES = 2_019, FAILED_TO_DESERIALIZE_RESOURCE = 2_020, TYPE_RESOLUTION_FAILURE = 2_021, UNKNOWN_BINARY_ERROR = 3_000, MALFORMED = 3_001, BAD_MAGIC = 3_002, UNKNOWN_VERSION = 3_003, UNKNOWN_TABLE_TYPE = 3_004, UNKNOWN_SIGNATURE_TYPE = 3_005, UNKNOWN_SERIALIZED_TYPE = 3_006, UNKNOWN_OPCODE = 3_007, BAD_HEADER_TABLE = 3_008, UNEXPECTED_SIGNATURE_TYPE = 3_009, DUPLICATE_TABLE = 3_010, UNKNOWN_ABILITY = 3_013, UNKNOWN_NATIVE_STRUCT_FLAG = 3_014, BAD_U64 = 3_019, BAD_U128 = 3_020, VALUE_SERIALIZATION_ERROR = 3_022, VALUE_DESERIALIZATION_ERROR = 3_023, CODE_DESERIALIZATION_ERROR = 3_024, INVALID_FLAG_BITS = 3_025, UNKNOWN_RUNTIME_STATUS = 4_000, EXECUTED = 4_001, OUT_OF_GAS = 4_002, RESOURCE_DOES_NOT_EXIST = 4_003, RESOURCE_ALREADY_EXISTS = 4_004, MISSING_DATA = 4_008, DATA_FORMAT_ERROR = 4_009, ABORTED = 4_016, ARITHMETIC_ERROR = 4_017, EXECUTION_STACK_OVERFLOW = 4_020, CALL_STACK_OVERFLOW = 4_021, VM_MAX_TYPE_DEPTH_REACHED = 4_024, VM_MAX_VALUE_DEPTH_REACHED = 4_025, UNKNOWN_STATUS = 18_446_744_073_709_551_615,
}
Expand description

We don’t derive Arbitrary on this enum because it is too large and breaks proptest. It is written for a subset of these in proptest_types. We test conversion between this and protobuf with a hand-written test.

Variants§

§

UNKNOWN_VALIDATION_STATUS = 0

§

INVALID_SIGNATURE = 1

§

INVALID_AUTH_KEY = 2

§

SEQUENCE_NUMBER_TOO_OLD = 3

§

SEQUENCE_NUMBER_TOO_NEW = 4

§

INSUFFICIENT_BALANCE_FOR_TRANSACTION_FEE = 5

§

TRANSACTION_EXPIRED = 6

§

SENDING_ACCOUNT_DOES_NOT_EXIST = 7

§

REJECTED_WRITE_SET = 8

§

INVALID_WRITE_SET = 9

§

EXCEEDED_MAX_TRANSACTION_SIZE = 10

§

UNKNOWN_SCRIPT = 11

§

UNKNOWN_MODULE = 12

§

MAX_GAS_UNITS_EXCEEDS_MAX_GAS_UNITS_BOUND = 13

§

MAX_GAS_UNITS_BELOW_MIN_TRANSACTION_GAS_UNITS = 14

§

GAS_UNIT_PRICE_BELOW_MIN_BOUND = 15

§

GAS_UNIT_PRICE_ABOVE_MAX_BOUND = 16

§

INVALID_GAS_SPECIFIER = 17

§

SENDING_ACCOUNT_FROZEN = 18

§

UNABLE_TO_DESERIALIZE_ACCOUNT = 19

§

CURRENCY_INFO_DOES_NOT_EXIST = 20

§

INVALID_MODULE_PUBLISHER = 21

§

NO_ACCOUNT_ROLE = 22

§

BAD_CHAIN_ID = 23

§

SEQUENCE_NUMBER_TOO_BIG = 24

§

BAD_TRANSACTION_FEE_CURRENCY = 25

§

FEATURE_UNDER_GATING = 26

§

CFX_UNEXPECTED_TX = 27

§

CFX_INVALID_TX = 28

§

ELECTION_NON_EXISITENT_NODE = 29

§

ELECTION_NON_ACCEPTED_NODE = 30

§

ELECTION_TERGET_TERM_NOT_OPEN = 31

§

ELECTION_WITHOUT_VOTES = 32

§

PIVOT_DECISION_HEIGHT_TOO_OLD = 33

§

UNKNOWN_VERIFICATION_ERROR = 1_000

§

INDEX_OUT_OF_BOUNDS = 1_001

§

INVALID_SIGNATURE_TOKEN = 1_003

§

RECURSIVE_STRUCT_DEFINITION = 1_005

§

FIELD_MISSING_TYPE_ABILITY = 1_006

§

INVALID_FALL_THROUGH = 1_007

§

NEGATIVE_STACK_SIZE_WITHIN_BLOCK = 1_009

§

INVALID_MAIN_FUNCTION_SIGNATURE = 1_011

§

DUPLICATE_ELEMENT = 1_012

§

INVALID_MODULE_HANDLE = 1_013

§

UNIMPLEMENTED_HANDLE = 1_014

§

LOOKUP_FAILED = 1_017

§

TYPE_MISMATCH = 1_020

§

MISSING_DEPENDENCY = 1_021

§

POP_WITHOUT_DROP_ABILITY = 1_023

§

BR_TYPE_MISMATCH_ERROR = 1_025

§

ABORT_TYPE_MISMATCH_ERROR = 1_026

§

STLOC_TYPE_MISMATCH_ERROR = 1_027

§

STLOC_UNSAFE_TO_DESTROY_ERROR = 1_028

§

UNSAFE_RET_LOCAL_OR_RESOURCE_STILL_BORROWED = 1_029

§

RET_TYPE_MISMATCH_ERROR = 1_030

§

RET_BORROWED_MUTABLE_REFERENCE_ERROR = 1_031

§

FREEZEREF_TYPE_MISMATCH_ERROR = 1_032

§

FREEZEREF_EXISTS_MUTABLE_BORROW_ERROR = 1_033

§

BORROWFIELD_TYPE_MISMATCH_ERROR = 1_034

§

BORROWFIELD_BAD_FIELD_ERROR = 1_035

§

BORROWFIELD_EXISTS_MUTABLE_BORROW_ERROR = 1_036

§

COPYLOC_UNAVAILABLE_ERROR = 1_037

§

COPYLOC_WITHOUT_COPY_ABILITY = 1_038

§

COPYLOC_EXISTS_BORROW_ERROR = 1_039

§

MOVELOC_UNAVAILABLE_ERROR = 1_040

§

MOVELOC_EXISTS_BORROW_ERROR = 1_041

§

BORROWLOC_REFERENCE_ERROR = 1_042

§

BORROWLOC_UNAVAILABLE_ERROR = 1_043

§

BORROWLOC_EXISTS_BORROW_ERROR = 1_044

§

CALL_TYPE_MISMATCH_ERROR = 1_045

§

CALL_BORROWED_MUTABLE_REFERENCE_ERROR = 1_046

§

PACK_TYPE_MISMATCH_ERROR = 1_047

§

UNPACK_TYPE_MISMATCH_ERROR = 1_048

§

READREF_TYPE_MISMATCH_ERROR = 1_049

§

READREF_WITHOUT_COPY_ABILITY = 1_050

§

READREF_EXISTS_MUTABLE_BORROW_ERROR = 1_051

§

WRITEREF_TYPE_MISMATCH_ERROR = 1_052

§

WRITEREF_WITHOUT_DROP_ABILITY = 1_053

§

WRITEREF_EXISTS_BORROW_ERROR = 1_054

§

WRITEREF_NO_MUTABLE_REFERENCE_ERROR = 1_055

§

INTEGER_OP_TYPE_MISMATCH_ERROR = 1_056

§

BOOLEAN_OP_TYPE_MISMATCH_ERROR = 1_057

§

EQUALITY_OP_TYPE_MISMATCH_ERROR = 1_058

§

EXISTS_WITHOUT_KEY_ABILITY_OR_BAD_ARGUMENT = 1_059

§

BORROWGLOBAL_TYPE_MISMATCH_ERROR = 1_060

§

BORROWGLOBAL_WITHOUT_KEY_ABILITY = 1_061

§

MOVEFROM_TYPE_MISMATCH_ERROR = 1_062

§

MOVEFROM_WITHOUT_KEY_ABILITY = 1_063

§

MOVETO_TYPE_MISMATCH_ERROR = 1_064

§

MOVETO_WITHOUT_KEY_ABILITY = 1_065

§

MODULE_ADDRESS_DOES_NOT_MATCH_SENDER = 1_067

§

NO_MODULE_HANDLES = 1_068

§

POSITIVE_STACK_SIZE_AT_BLOCK_END = 1_069

§

MISSING_ACQUIRES_ANNOTATION = 1_070

§

EXTRANEOUS_ACQUIRES_ANNOTATION = 1_071

§

DUPLICATE_ACQUIRES_ANNOTATION = 1_072

§

INVALID_ACQUIRES_ANNOTATION = 1_073

§

GLOBAL_REFERENCE_ERROR = 1_074

§

CONSTRAINT_NOT_SATISFIED = 1_075

§

NUMBER_OF_TYPE_ARGUMENTS_MISMATCH = 1_076

§

LOOP_IN_INSTANTIATION_GRAPH = 1_077

§

ZERO_SIZED_STRUCT = 1_080

§

LINKER_ERROR = 1_081

§

INVALID_CONSTANT_TYPE = 1_082

§

MALFORMED_CONSTANT_DATA = 1_083

§

EMPTY_CODE_UNIT = 1_084

§

INVALID_LOOP_SPLIT = 1_085

§

INVALID_LOOP_BREAK = 1_086

§

INVALID_LOOP_CONTINUE = 1_087

§

UNSAFE_RET_UNUSED_VALUES_WITHOUT_DROP = 1_088

§

TOO_MANY_LOCALS = 1_089

§

GENERIC_MEMBER_OPCODE_MISMATCH = 1_090

§

FUNCTION_RESOLUTION_FAILURE = 1_091

§

INVALID_OPERATION_IN_SCRIPT = 1_094

§

DUPLICATE_MODULE_NAME = 1_095

§

BACKWARD_INCOMPATIBLE_MODULE_UPDATE = 1_096

§

CYCLIC_MODULE_DEPENDENCY = 1_097

§

NUMBER_OF_ARGUMENTS_MISMATCH = 1_098

§

INVALID_PARAM_TYPE_FOR_DESERIALIZATION = 1_099

§

FAILED_TO_DESERIALIZE_ARGUMENT = 1_100

§

NUMBER_OF_SIGNER_ARGUMENTS_MISMATCH = 1_101

§

CALLED_SCRIPT_VISIBLE_FROM_NON_SCRIPT_VISIBLE = 1_102

§

EXECUTE_SCRIPT_FUNCTION_CALLED_ON_NON_SCRIPT_VISIBLE = 1_103

§

INVALID_FRIEND_DECL_WITH_SELF = 1_104

§

INVALID_FRIEND_DECL_WITH_MODULES_OUTSIDE_ACCOUNT_ADDRESS = 1_105

§

INVALID_FRIEND_DECL_WITH_MODULES_IN_DEPENDENCIES = 1_106

§

CYCLIC_MODULE_FRIENDSHIP = 1_107

§

UNKNOWN_INVARIANT_VIOLATION_ERROR = 2_000

§

EMPTY_VALUE_STACK = 2_003

§

PC_OVERFLOW = 2_005

§

VERIFICATION_ERROR = 2_006

§

STORAGE_ERROR = 2_008

§

INTERNAL_TYPE_ERROR = 2_009

§

EVENT_KEY_MISMATCH = 2_010

§

UNREACHABLE = 2_011

§

VM_STARTUP_FAILURE = 2_012

§

UNEXPECTED_ERROR_FROM_KNOWN_MOVE_FUNCTION = 2_015

§

VERIFIER_INVARIANT_VIOLATION = 2_016

§

UNEXPECTED_VERIFIER_ERROR = 2_017

§

UNEXPECTED_DESERIALIZATION_ERROR = 2_018

§

FAILED_TO_SERIALIZE_WRITE_SET_CHANGES = 2_019

§

FAILED_TO_DESERIALIZE_RESOURCE = 2_020

§

TYPE_RESOLUTION_FAILURE = 2_021

§

UNKNOWN_BINARY_ERROR = 3_000

§

MALFORMED = 3_001

§

BAD_MAGIC = 3_002

§

UNKNOWN_VERSION = 3_003

§

UNKNOWN_TABLE_TYPE = 3_004

§

UNKNOWN_SIGNATURE_TYPE = 3_005

§

UNKNOWN_SERIALIZED_TYPE = 3_006

§

UNKNOWN_OPCODE = 3_007

§

BAD_HEADER_TABLE = 3_008

§

UNEXPECTED_SIGNATURE_TYPE = 3_009

§

DUPLICATE_TABLE = 3_010

§

UNKNOWN_ABILITY = 3_013

§

UNKNOWN_NATIVE_STRUCT_FLAG = 3_014

§

BAD_U64 = 3_019

§

BAD_U128 = 3_020

§

VALUE_SERIALIZATION_ERROR = 3_022

§

VALUE_DESERIALIZATION_ERROR = 3_023

§

CODE_DESERIALIZATION_ERROR = 3_024

§

INVALID_FLAG_BITS = 3_025

§

UNKNOWN_RUNTIME_STATUS = 4_000

§

EXECUTED = 4_001

§

OUT_OF_GAS = 4_002

§

RESOURCE_DOES_NOT_EXIST = 4_003

§

RESOURCE_ALREADY_EXISTS = 4_004

§

MISSING_DATA = 4_008

§

DATA_FORMAT_ERROR = 4_009

§

ABORTED = 4_016

§

ARITHMETIC_ERROR = 4_017

§

EXECUTION_STACK_OVERFLOW = 4_020

§

CALL_STACK_OVERFLOW = 4_021

§

VM_MAX_TYPE_DEPTH_REACHED = 4_024

§

VM_MAX_VALUE_DEPTH_REACHED = 4_025

§

UNKNOWN_STATUS = 18_446_744_073_709_551_615

Implementations§

§

impl StatusCode

pub fn status_type(self) -> StatusType

Return the status type for this status code

Trait Implementations§

§

impl Clone for StatusCode

§

fn clone(&self) -> StatusCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for StatusCode

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for StatusCode

§

fn deserialize<D>( deserializer: D ) -> Result<StatusCode, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Hash for StatusCode

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for StatusCode

§

fn cmp(&self, other: &StatusCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for StatusCode

§

fn eq(&self, other: &StatusCode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for StatusCode

§

fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl Serialize for StatusCode

§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<u64> for StatusCode

§

type Error = &'static str

The type returned in the event of a conversion error.
§

fn try_from( value: u64 ) -> Result<StatusCode, <StatusCode as TryFrom<u64>>::Error>

Performs the conversion.
§

impl Copy for StatusCode

§

impl Eq for StatusCode

§

impl StructuralPartialEq for StatusCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
§

impl<T> TestOnlyHash for T
where T: Serialize + ?Sized,

§

fn test_only_hash(&self) -> HashValue

Generates a hash used only for tests.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,