Enum cloud_code::StatusCode [−][src]
pub enum StatusCode {
Show 82 variants
Success,
ConvertIntError,
NoneStatusCode,
FatalError,
MisbehaveNode,
BannedNode,
AddressOriginCheckError,
ProvideAddressError,
NoProvideAddress,
NoBlock,
NoProof,
NoTxHeight,
NoTxIndex,
NoTransaction,
NoBlockHeight,
NoBlockHash,
NoneProposal,
NoneBlockBody,
NoneBlockHeader,
NoneChainStatus,
NoneWitness,
NoneTransaction,
NoneUtxo,
NoneRawTx,
EarlyStatus,
ExecuteError,
EncodeError,
DecodeError,
NoCandidate,
NoEarlyStatus,
NoForkTree,
DupTransaction,
ProposalTooHigh,
ProposalTooLow,
ProposalCheckError,
ConsensusProposalCheckError,
BlockCheckError,
CSISigCheckError,
VersionOrIdCheckError,
HashCheckError,
HashLenError,
SigLenError,
SigCheckError,
NodeInSyncMode,
HistoryDupTx,
EmergencyBrake,
InvalidVersion,
InvalidTo,
InvalidNonce,
InvalidValidUntilBlock,
InvalidValue,
InvalidChainId,
InvalidWitness,
InvalidLockId,
InvalidPreHash,
AdminCheckError,
ModuleNotController,
ConsensusServerNotReady,
ProposalProofError,
KmsServerNotReady,
NoneHashResult,
NotFoundAccount,
ConstructSigError,
ConstructKeyPairError,
SignError,
InsertAccountError,
NetworkServerNotReady,
SendMsgError,
BroadcastMsgError,
MultiAddrParseError,
DialNodeFail,
ExecuteServerNotReady,
InternalChannelDisconnected,
ReenterBlock,
StorageServerNotReady,
NotFound,
InvalidRegion,
InvalidKey,
BadRegion,
StoreError,
LoadError,
DeleteError,
}Expand description
The response status code
Variants
Success: 0
Convert int to status Error
status code is none
fate error
controller error, start from 100 node in misbehave list
node in ban list
address not consistent with record origin
provide address len is not 20
message not provide address
not get the block
not get the proof
not get height of block which wrap tx
not get tx index
not get transaction
not get the block height base on hash
not get the block hash base on height
proposal is none
block body is none
block header is none
chain status is none
transaction’s witness is none
transaction is none
utxo is none
raw tx is none
early status received
execute error
proto struct encode error
proto struct encode error
no candidate block
not get early status
fork tree no block
find dup transaction
proposal too high
proposal too low
proposal check error
consensus check proposal error
block hash check error
the sig of chain status init check error
chain version or chain id check error
hash check error
hash len is not correct
signature len is not correct
signature check error
the node in sync mode
Dup tx in history
emergency brake
auth check tx’s version error
auth check tx’s to error
auth check tx’s nonce error
auth check tx’s valid until block error
auth check tx’s value error
auth check tx’s chain id error
auth limit utxo’s witness only one
auth check utxo’s lock id error
auth check utxo’s pre tx hash error
auth check send is not admin
network msg’s module not controller
Consensus from 200 check proposal proof error
proof of proposal error
Kms from 300 Kms server not ready
hash result is none
kms not found account base on id
construct signature error
construct key pair error
sign error
insert account error
Network from 400 Network server not ready
send message error
broadcast message error
multi-addr error
dial node failed
executor from 500 Executor server not ready
internal channel disconnected
same height block reenter
storage from 600 storage server not ready
kv not found
invalid region
invalid key
bad region
store data error
load data error
delete data error
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Converts an i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts a usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts an u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Converts a f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more