Enum diem_types::vm_status::StatusCode
#[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
impl StatusCode
pub fn status_type(self) -> StatusType
pub fn status_type(self) -> StatusType
Return the status type for this status code
Trait Implementations§
§impl Clone for StatusCode
impl Clone for StatusCode
§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
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 more§impl Debug for StatusCode
impl Debug for StatusCode
§impl<'de> Deserialize<'de> for StatusCode
impl<'de> Deserialize<'de> for StatusCode
§fn deserialize<D>(
deserializer: D
) -> Result<StatusCode, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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
impl Hash for StatusCode
§impl Ord for StatusCode
impl Ord for StatusCode
§impl PartialEq for StatusCode
impl PartialEq for StatusCode
§fn eq(&self, other: &StatusCode) -> bool
fn eq(&self, other: &StatusCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for StatusCode
impl PartialOrd for StatusCode
§fn partial_cmp(&self, other: &StatusCode) -> Option<Ordering>
fn partial_cmp(&self, other: &StatusCode) -> 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 more§impl Serialize for StatusCode
impl Serialize for StatusCode
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
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
impl TryFrom<u64> for StatusCode
impl Copy for StatusCode
impl Eq for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
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,
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,
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,
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,
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,
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,
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,
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,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
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) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
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) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
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
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
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
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
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
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
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
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
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
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
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
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
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
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
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
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
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.§impl<T> TestOnlyHash for T
impl<T> TestOnlyHash for T
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.