#[non_exhaustive]#[repr(u32)]pub enum CommonResult {
Success = 0,
NotFound = 1,
InvalidData = 2,
InvalidInput = 3,
TopicTooLong = 4,
TooManyTopics = 5,
PayloadTooLong = 6,
MessageTopicFull = 7,
MaxMessagesPerBlockExceeded = 8,
Internal = 9,
Other(u32),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success = 0
NotFound = 1
An entity was not found, often a missing key in the global state.
InvalidData = 2
Data not valid for the operation were encountered.
As an example this could be a malformed parameter that does not contain a valid UTF-8.
InvalidInput = 3
The input to the host function was invalid.
TopicTooLong = 4
The topic is too long.
TooManyTopics = 5
Too many topics.
PayloadTooLong = 6
The payload is too long.
MessageTopicFull = 7
The message topic is full and cannot accept new messages.
MaxMessagesPerBlockExceeded = 8
The maximum number of messages emitted per block was exceeded when trying to emit a message.
Internal = 9
Internal error (for example, failed to acquire a lock)
Other(u32)
An error code not covered by the other variants.
Trait Implementations§
Source§impl Debug for CommonResult
impl Debug for CommonResult
Source§impl Default for CommonResult
impl Default for CommonResult
Source§fn default() -> CommonResult
fn default() -> CommonResult
Returns the “default value” for a type. Read more
Source§impl From<u32> for CommonResult
impl From<u32> for CommonResult
Source§impl PartialEq for CommonResult
impl PartialEq for CommonResult
impl StructuralPartialEq for CommonResult
Auto Trait Implementations§
impl Freeze for CommonResult
impl RefUnwindSafe for CommonResult
impl Send for CommonResult
impl Sync for CommonResult
impl Unpin for CommonResult
impl UnwindSafe for CommonResult
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