#[repr(u64)]pub enum ProtocolErrorCode {
Show 20 variants
Ok = 0,
IndexOutOfBound = 1,
ItemMissing = 2,
LengthNotEnough = 3,
InvalidData = 4,
WaitFailure = 5,
InvalidFd = 6,
OtherEndClosed = 7,
MaxVmsSpawned = 8,
MaxFdsCreated = 9,
UnknownError = 20,
UnknownSysError = 21,
UnexpectedEof = 22,
IncompleteVlqSeq = 23,
DecodeVlqOverflow = 24,
ReadVlqError = 25,
SerializeError = 26,
DeserializeError = 27,
GeneralIoError = 28,
EndOfError = 29,
}
Expand description
Protocol error code used in wire protocol. Its range from 1 to 2^64 - 1. 1~20 are with same values used in syscall error.
Variants§
Ok = 0
IndexOutOfBound = 1
Index out of bound
ItemMissing = 2
Field is missing for the target
LengthNotEnough = 3
Buffer length is not enough, error contains actual data length
InvalidData = 4
Data encoding error(molecule)
WaitFailure = 5
Failed to wait.
InvalidFd = 6
Invalid file descriptor.
OtherEndClosed = 7
Reading from or writing to file descriptor failed due to other end closed.
MaxVmsSpawned = 8
Max vms has been spawned.
MaxFdsCreated = 9
Max fds has been spawned.
UnknownError = 20
Unknown error code
UnknownSysError = 21
Unknown error from SysError in ckb-std
UnexpectedEof = 22
Unexpected EOF
IncompleteVlqSeq = 23
VQL error: incomplete VLQ sequence
DecodeVlqOverflow = 24
VLQ error: decoding overflow
ReadVlqError = 25
VLQ error: reading error
SerializeError = 26
Serialize error
DeserializeError = 27
Deserialize error
GeneralIoError = 28
general IO error
EndOfError = 29
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolErrorCode
impl Clone for ProtocolErrorCode
Source§fn clone(&self) -> ProtocolErrorCode
fn clone(&self) -> ProtocolErrorCode
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 ProtocolErrorCode
impl Debug for ProtocolErrorCode
Source§impl From<IpcError> for ProtocolErrorCode
impl From<IpcError> for ProtocolErrorCode
Auto Trait Implementations§
impl Freeze for ProtocolErrorCode
impl RefUnwindSafe for ProtocolErrorCode
impl Send for ProtocolErrorCode
impl Sync for ProtocolErrorCode
impl Unpin for ProtocolErrorCode
impl UnwindSafe for ProtocolErrorCode
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