Struct taos_query::prelude::Code

source ·
pub struct Code(_);
Expand description

TDengine error code.

Implementations§

source§

impl Code

source

pub const COLUMN_EXISTS: Code = Code(875)

source

pub const COLUMN_NOT_EXIST: Code = Code(876)

source

pub const TAG_ALREADY_EXIST: Code = Code(873)

source

pub const TAG_NOT_EXIST: Code = Code(874)

source

pub const MODIFIED_ALREADY: Code = Code(9803)

source

pub const INVALID_COLUMN_NAME: Code = Code(9730)

source

pub const TABLE_NOT_EXIST: Code = Code(9731)

source

pub const STABLE_NOT_EXIST: Code = Code(866)

source

pub const INVALID_ROW_BYTES: Code = Code(879)

source

pub const DUPLICATED_COLUMN_NAMES: Code = Code(9788)

source

pub const NO_COLUMN_CAN_BE_DROPPED: Code = Code(9809)

source§

impl Code

source

pub const fn new(code: i32) -> Code

Code from raw primitive type.

source§

impl Code

source

pub const Success: Code = Code(0)

Success, 0

source

pub const Failed: Code = Code(65535)

Unknown fails, 0xFFFF

source

pub const TscInvalidOperation: Code = Code(512)

TSC_INVALID_OPERATION: Invalid Operation

source

pub const TscInvalidQhandle: Code = Code(513)

TSC_INVALID_QHANDLE: Invalid qhandle

source

pub const TscInvalidTimeStamp: Code = Code(514)

TSC_INVALID_TIME_STAMP: Invalid combination of client/service time

source

pub const TscInvalidValue: Code = Code(515)

TSC_INVALID_VALUE: Invalid value in client

source

pub const TscInvalidVersion: Code = Code(516)

TSC_INVALID_VERSION: Invalid client version

source

pub const TscInvalidIe: Code = Code(517)

TSC_INVALID_IE: Invalid client ie

source

pub const TscInvalidFqdn: Code = Code(518)

TSC_INVALID_FQDN: Invalid host name

source

pub const TscInvalidUserLength: Code = Code(519)

TSC_INVALID_USER_LENGTH: Invalid user name

source

pub const TscInvalidPassLength: Code = Code(520)

TSC_INVALID_PASS_LENGTH: Invalid password

source

pub const TscInvalidDbLength: Code = Code(521)

TSC_INVALID_DB_LENGTH: Database name too long

source

pub const TscInvalidTableIdLength: Code = Code(522)

TSC_INVALID_TABLE_ID_LENGTH: Table name too long

source

pub const TscInvalidConnection: Code = Code(523)

TSC_INVALID_CONNECTION: Invalid connection

source

pub const TscOutOfMemory: Code = Code(524)

TSC_OUT_OF_MEMORY: System out of memory

source

pub const TscNoDiskspace: Code = Code(525)

TSC_NO_DISKSPACE: System out of disk space

source

pub const TscQueryCacheErased: Code = Code(526)

TSC_QUERY_CACHE_ERASED: Query cache erased

source

pub const TscQueryCancelled: Code = Code(527)

TSC_QUERY_CANCELLED: Query terminated

source

pub const TscSortedResTooMany: Code = Code(528)

TSC_SORTED_RES_TOO_MANY: Result set too large to be sorted

source

pub const TscAppError: Code = Code(529)

TSC_APP_ERROR: Application error

source

pub const TscActionInProgress: Code = Code(530)

TSC_ACTION_IN_PROGRESS: Action in progress

source

pub const TscDisconnected: Code = Code(531)

TSC_DISCONNECTED: Disconnected from service

source

pub const TscNoWriteAuth: Code = Code(532)

TSC_NO_WRITE_AUTH: No write permission

source

pub const TscConnKilled: Code = Code(533)

TSC_CONN_KILLED: Connection killed

source

pub const TscSqlSyntaxError: Code = Code(534)

TSC_SQL_SYNTAX_ERROR: Syntax error in SQL

source

pub const TscDbNotSelected: Code = Code(535)

TSC_DB_NOT_SELECTED: Database not specified or available

source

pub const TscInvalidTableName: Code = Code(536)

TSC_INVALID_TABLE_NAME: Table does not exist

source

pub const TscExceedSqlLimit: Code = Code(537)

TSC_EXCEED_SQL_LIMIT: SQL statement too long check maxSQLLength config

source

pub const TscFileEmpty: Code = Code(538)

TSC_FILE_EMPTY: File is empty

source

pub const TscLineSyntaxError: Code = Code(539)

TSC_LINE_SYNTAX_ERROR: Syntax error in Line

source

pub const TscNoMetaCached: Code = Code(540)

TSC_NO_META_CACHED: No table meta cached

source

pub const TscDupColNames: Code = Code(541)

TSC_DUP_COL_NAMES: duplicated column names

source

pub const TscInvalidTagLength: Code = Code(542)

TSC_INVALID_TAG_LENGTH: Invalid tag length

source

pub const TscInvalidColumnLength: Code = Code(543)

TSC_INVALID_COLUMN_LENGTH: Invalid column length

source

pub const TscDupTagNames: Code = Code(544)

TSC_DUP_TAG_NAMES: duplicated tag names

source

pub const TscInvalidJson: Code = Code(545)

TSC_INVALID_JSON: Invalid JSON format

source

pub const TscInvalidJsonType: Code = Code(546)

TSC_INVALID_JSON_TYPE: Invalid JSON data type

source

pub const TscInvalidJsonConfig: Code = Code(547)

TSC_INVALID_JSON_CONFIG: Invalid JSON configuration

source

pub const TscValueOutOfRange: Code = Code(548)

TSC_VALUE_OUT_OF_RANGE: Value out of range

source

pub const TscInvalidProtocolType: Code = Code(549)

TSC_INVALID_PROTOCOL_TYPE: Invalid line protocol type

source

pub const TscInvalidPrecisionType: Code = Code(550)

TSC_INVALID_PRECISION_TYPE: Invalid timestamp precision type

source

pub const TscResTooMany: Code = Code(551)

TSC_RES_TOO_MANY: Result set too large to be output

source

pub const TscInvalidSchemaVersion: Code = Code(552)

TSC_INVALID_SCHEMA_VERSION: invalid table schema version

source

pub const MndInvalidTopic: Code = Code(914)

MND_INVALID_TOPIC: Invalid topic nam

source

pub const MndInvalidTopicOption: Code = Code(915)

MND_INVALID_TOPIC_OPTION: Invalid topic optio

source

pub const MndInvalidTopicPartitons: Code = Code(916)

MND_INVALID_TOPIC_PARTITONS: Invalid topic partitons num, valid range: [1, 1000

source

pub const MndTopicAlreadyExist: Code = Code(917)

MND_TOPIC_ALREADY_EXIST: Topic already exist

source

pub const TdbInvalidTableId: Code = Code(1536)

TDB_INVALID_TABLE_ID: Invalid table ID

source

pub const TdbInvalidTableType: Code = Code(1537)

TDB_INVALID_TABLE_TYPE: Invalid table type

source

pub const TdbIvdTbSchemaVersion: Code = Code(1538)

TDB_IVD_TB_SCHEMA_VERSION: Invalid table schema version

source

pub const TdbTableAlreadyExist: Code = Code(1539)

TDB_TABLE_ALREADY_EXIST: Table already exists

source

pub const TdbInvalidConfig: Code = Code(1540)

TDB_INVALID_CONFIG: Invalid configuration

source

pub const TdbInitFailed: Code = Code(1541)

TDB_INIT_FAILED: Tsdb init failed

source

pub const TdbNoDiskspace: Code = Code(1542)

TDB_NO_DISKSPACE: No diskspace for tsdb

source

pub const TdbNoDiskPermissions: Code = Code(1543)

TDB_NO_DISK_PERMISSIONS: No permission for disk files

source

pub const TdbFileCorrupted: Code = Code(1544)

TDB_FILE_CORRUPTED: Data file(s) corrupted

source

pub const TdbOutOfMemory: Code = Code(1545)

TDB_OUT_OF_MEMORY: Out of memory

source

pub const TdbTagVerOutOfDate: Code = Code(1546)

TDB_TAG_VER_OUT_OF_DATE: Tag too old

source

pub const TdbTimestampOutOfRange: Code = Code(1547)

TDB_TIMESTAMP_OUT_OF_RANGE: Timestamp data out of range

source

pub const TdbSubmitMsgMssedUp: Code = Code(1548)

TDB_SUBMIT_MSG_MSSED_UP: Submit message is messed up

source

pub const TdbInvalidAction: Code = Code(1549)

TDB_INVALID_ACTION: Invalid operation

source

pub const TdbInvalidCreateTbMsg: Code = Code(1550)

TDB_INVALID_CREATE_TB_MSG: Invalid creation of table

source

pub const TdbNoTableDataInMem: Code = Code(1551)

TDB_NO_TABLE_DATA_IN_MEM: No table data in memory skiplist

source

pub const TdbFileAlreadyExists: Code = Code(1552)

TDB_FILE_ALREADY_EXISTS: File already exists

source

pub const TdbTableReconfigure: Code = Code(1553)

TDB_TABLE_RECONFIGURE: Need to reconfigure table

source

pub const TdbIvdCreateTableInfo: Code = Code(1554)

TDB_IVD_CREATE_TABLE_INFO: Invalid information to create table

source

pub const TdbNoAvailDisk: Code = Code(1555)

TDB_NO_AVAIL_DISK: No available disk

source

pub const TdbMessedMsg: Code = Code(1556)

TDB_MESSED_MSG: TSDB messed message

source

pub const TdbIvldTagVal: Code = Code(1557)

TDB_IVLD_TAG_VAL: TSDB invalid tag value

source

pub const TdbNoCacheLastRow: Code = Code(1558)

TDB_NO_CACHE_LAST_ROW: TSDB no cache last row data

source

pub const TdbIncompleteDfileset: Code = Code(1559)

TDB_INCOMPLETE_DFILESET: TSDB incomplete DFileSet

source

pub const QryInvalidQhandle: Code = Code(1792)

QRY_INVALID_QHANDLE: Invalid handle

source

pub const QryInvalidMsg: Code = Code(1793)

QRY_INVALID_MSG: Invalid message

source

pub const QryNoDiskspace: Code = Code(1794)

QRY_NO_DISKSPACE: No diskspace for query

source

pub const QryOutOfMemory: Code = Code(1795)

QRY_OUT_OF_MEMORY: System out of memory

source

pub const QryAppError: Code = Code(1796)

QRY_APP_ERROR: Unexpected generic error in query

source

pub const QryDupJoinKey: Code = Code(1797)

QRY_DUP_JOIN_KEY: Duplicated join key

source

pub const QryExceedTagsLimit: Code = Code(1798)

QRY_EXCEED_TAGS_LIMIT: Tag condition too many

source

pub const QryNotReady: Code = Code(1799)

QRY_NOT_READY: Query not ready

source

pub const QryHasRsp: Code = Code(1800)

QRY_HAS_RSP: Query should response

source

pub const QryInExec: Code = Code(1801)

QRY_IN_EXEC: Multiple retrieval of this query

source

pub const QryTooManyTimewindow: Code = Code(1802)

QRY_TOO_MANY_TIMEWINDOW: Too many time window in query

source

pub const QryNotEnoughBuffer: Code = Code(1803)

QRY_NOT_ENOUGH_BUFFER: Query buffer limit has reached

source

pub const QryInconsistan: Code = Code(1804)

QRY_INCONSISTAN: File inconsistency in replica

source

pub const QrySysError: Code = Code(1805)

QRY_SYS_ERROR: System error

source

pub const QryInvalidTimeCondition: Code = Code(1806)

QRY_INVALID_TIME_CONDITION: invalid time condition

source

pub const QryInvalidSchemaVersion: Code = Code(1808)

QRY_INVALID_SCHEMA_VERSION: invalid schema version

source§

impl Code

source

pub fn success(&self) -> bool

source

pub fn tsc_invalid_operation(&self) -> bool

TSC_INVALID_OPERATION: Invalid Operation

source

pub fn tsc_invalid_qhandle(&self) -> bool

TSC_INVALID_QHANDLE: Invalid qhandle

source

pub fn tsc_invalid_time_stamp(&self) -> bool

TSC_INVALID_TIME_STAMP: Invalid combination of client/service time

source

pub fn tsc_invalid_value(&self) -> bool

TSC_INVALID_VALUE: Invalid value in client

source

pub fn tsc_invalid_version(&self) -> bool

TSC_INVALID_VERSION: Invalid client version

source

pub fn tsc_invalid_ie(&self) -> bool

TSC_INVALID_IE: Invalid client ie

source

pub fn tsc_invalid_fqdn(&self) -> bool

TSC_INVALID_FQDN: Invalid host name

source

pub fn tsc_invalid_user_length(&self) -> bool

TSC_INVALID_USER_LENGTH: Invalid user name

source

pub fn tsc_invalid_pass_length(&self) -> bool

TSC_INVALID_PASS_LENGTH: Invalid password

source

pub fn tsc_invalid_db_length(&self) -> bool

TSC_INVALID_DB_LENGTH: Database name too long

source

pub fn tsc_invalid_table_id_length(&self) -> bool

TSC_INVALID_TABLE_ID_LENGTH: Table name too long

source

pub fn tsc_invalid_connection(&self) -> bool

TSC_INVALID_CONNECTION: Invalid connection

source

pub fn tsc_out_of_memory(&self) -> bool

TSC_OUT_OF_MEMORY: System out of memory

source

pub fn tsc_no_diskspace(&self) -> bool

TSC_NO_DISKSPACE: System out of disk space

source

pub fn tsc_query_cache_erased(&self) -> bool

TSC_QUERY_CACHE_ERASED: Query cache erased

source

pub fn tsc_query_cancelled(&self) -> bool

TSC_QUERY_CANCELLED: Query terminated

source

pub fn tsc_sorted_res_too_many(&self) -> bool

TSC_SORTED_RES_TOO_MANY: Result set too large to be sorted

source

pub fn tsc_app_error(&self) -> bool

TSC_APP_ERROR: Application error

source

pub fn tsc_action_in_progress(&self) -> bool

TSC_ACTION_IN_PROGRESS: Action in progress

source

pub fn tsc_disconnected(&self) -> bool

TSC_DISCONNECTED: Disconnected from service

source

pub fn tsc_no_write_auth(&self) -> bool

TSC_NO_WRITE_AUTH: No write permission

source

pub fn tsc_conn_killed(&self) -> bool

TSC_CONN_KILLED: Connection killed

source

pub fn tsc_sql_syntax_error(&self) -> bool

TSC_SQL_SYNTAX_ERROR: Syntax error in SQL

source

pub fn tsc_db_not_selected(&self) -> bool

TSC_DB_NOT_SELECTED: Database not specified or available

source

pub fn tsc_invalid_table_name(&self) -> bool

TSC_INVALID_TABLE_NAME: Table does not exist

source

pub fn tsc_exceed_sql_limit(&self) -> bool

TSC_EXCEED_SQL_LIMIT: SQL statement too long check maxSQLLength config

source

pub fn tsc_file_empty(&self) -> bool

TSC_FILE_EMPTY: File is empty

source

pub fn tsc_line_syntax_error(&self) -> bool

TSC_LINE_SYNTAX_ERROR: Syntax error in Line

source

pub fn tsc_no_meta_cached(&self) -> bool

TSC_NO_META_CACHED: No table meta cached

source

pub fn tsc_dup_col_names(&self) -> bool

TSC_DUP_COL_NAMES: duplicated column names

source

pub fn tsc_invalid_tag_length(&self) -> bool

TSC_INVALID_TAG_LENGTH: Invalid tag length

source

pub fn tsc_invalid_column_length(&self) -> bool

TSC_INVALID_COLUMN_LENGTH: Invalid column length

source

pub fn tsc_dup_tag_names(&self) -> bool

TSC_DUP_TAG_NAMES: duplicated tag names

source

pub fn tsc_invalid_json(&self) -> bool

TSC_INVALID_JSON: Invalid JSON format

source

pub fn tsc_invalid_json_type(&self) -> bool

TSC_INVALID_JSON_TYPE: Invalid JSON data type

source

pub fn tsc_invalid_json_config(&self) -> bool

TSC_INVALID_JSON_CONFIG: Invalid JSON configuration

source

pub fn tsc_value_out_of_range(&self) -> bool

TSC_VALUE_OUT_OF_RANGE: Value out of range

source

pub fn tsc_invalid_protocol_type(&self) -> bool

TSC_INVALID_PROTOCOL_TYPE: Invalid line protocol type

source

pub fn tsc_invalid_precision_type(&self) -> bool

TSC_INVALID_PRECISION_TYPE: Invalid timestamp precision type

source

pub fn tsc_res_too_many(&self) -> bool

TSC_RES_TOO_MANY: Result set too large to be output

source

pub fn tsc_invalid_schema_version(&self) -> bool

TSC_INVALID_SCHEMA_VERSION: invalid table schema version

source

pub fn mnd_invalid_topic(&self) -> bool

MND_INVALID_TOPIC: Invalid topic nam

source

pub fn mnd_invalid_topic_option(&self) -> bool

MND_INVALID_TOPIC_OPTION: Invalid topic optio

source

pub fn mnd_invalid_topic_partitons(&self) -> bool

MND_INVALID_TOPIC_PARTITONS: Invalid topic partitons num, valid range: [1, 1000

source

pub fn mnd_topic_already_exist(&self) -> bool

MND_TOPIC_ALREADY_EXIST: Topic already exist

source

pub fn tdb_invalid_table_id(&self) -> bool

TDB_INVALID_TABLE_ID: Invalid table ID

source

pub fn tdb_invalid_table_type(&self) -> bool

TDB_INVALID_TABLE_TYPE: Invalid table type

source

pub fn tdb_ivd_tb_schema_version(&self) -> bool

TDB_IVD_TB_SCHEMA_VERSION: Invalid table schema version

source

pub fn tdb_table_already_exist(&self) -> bool

TDB_TABLE_ALREADY_EXIST: Table already exists

source

pub fn tdb_invalid_config(&self) -> bool

TDB_INVALID_CONFIG: Invalid configuration

source

pub fn tdb_init_failed(&self) -> bool

TDB_INIT_FAILED: Tsdb init failed

source

pub fn tdb_no_diskspace(&self) -> bool

TDB_NO_DISKSPACE: No diskspace for tsdb

source

pub fn tdb_no_disk_permissions(&self) -> bool

TDB_NO_DISK_PERMISSIONS: No permission for disk files

source

pub fn tdb_file_corrupted(&self) -> bool

TDB_FILE_CORRUPTED: Data file(s) corrupted

source

pub fn tdb_out_of_memory(&self) -> bool

TDB_OUT_OF_MEMORY: Out of memory

source

pub fn tdb_tag_ver_out_of_date(&self) -> bool

TDB_TAG_VER_OUT_OF_DATE: Tag too old

source

pub fn tdb_timestamp_out_of_range(&self) -> bool

TDB_TIMESTAMP_OUT_OF_RANGE: Timestamp data out of range

source

pub fn tdb_submit_msg_mssed_up(&self) -> bool

TDB_SUBMIT_MSG_MSSED_UP: Submit message is messed up

source

pub fn tdb_invalid_action(&self) -> bool

TDB_INVALID_ACTION: Invalid operation

source

pub fn tdb_invalid_create_tb_msg(&self) -> bool

TDB_INVALID_CREATE_TB_MSG: Invalid creation of table

source

pub fn tdb_no_table_data_in_mem(&self) -> bool

TDB_NO_TABLE_DATA_IN_MEM: No table data in memory skiplist

source

pub fn tdb_file_already_exists(&self) -> bool

TDB_FILE_ALREADY_EXISTS: File already exists

source

pub fn tdb_table_reconfigure(&self) -> bool

TDB_TABLE_RECONFIGURE: Need to reconfigure table

source

pub fn tdb_ivd_create_table_info(&self) -> bool

TDB_IVD_CREATE_TABLE_INFO: Invalid information to create table

source

pub fn tdb_no_avail_disk(&self) -> bool

TDB_NO_AVAIL_DISK: No available disk

source

pub fn tdb_messed_msg(&self) -> bool

TDB_MESSED_MSG: TSDB messed message

source

pub fn tdb_ivld_tag_val(&self) -> bool

TDB_IVLD_TAG_VAL: TSDB invalid tag value

source

pub fn tdb_no_cache_last_row(&self) -> bool

TDB_NO_CACHE_LAST_ROW: TSDB no cache last row data

source

pub fn tdb_incomplete_dfileset(&self) -> bool

TDB_INCOMPLETE_DFILESET: TSDB incomplete DFileSet

source

pub fn qry_invalid_qhandle(&self) -> bool

QRY_INVALID_QHANDLE: Invalid handle

source

pub fn qry_invalid_msg(&self) -> bool

QRY_INVALID_MSG: Invalid message

source

pub fn qry_no_diskspace(&self) -> bool

QRY_NO_DISKSPACE: No diskspace for query

source

pub fn qry_out_of_memory(&self) -> bool

QRY_OUT_OF_MEMORY: System out of memory

source

pub fn qry_app_error(&self) -> bool

QRY_APP_ERROR: Unexpected generic error in query

source

pub fn qry_dup_join_key(&self) -> bool

QRY_DUP_JOIN_KEY: Duplicated join key

source

pub fn qry_exceed_tags_limit(&self) -> bool

QRY_EXCEED_TAGS_LIMIT: Tag condition too many

source

pub fn qry_not_ready(&self) -> bool

QRY_NOT_READY: Query not ready

source

pub fn qry_has_rsp(&self) -> bool

QRY_HAS_RSP: Query should response

source

pub fn qry_in_exec(&self) -> bool

QRY_IN_EXEC: Multiple retrieval of this query

source

pub fn qry_too_many_timewindow(&self) -> bool

QRY_TOO_MANY_TIMEWINDOW: Too many time window in query

source

pub fn qry_not_enough_buffer(&self) -> bool

QRY_NOT_ENOUGH_BUFFER: Query buffer limit has reached

source

pub fn qry_inconsistan(&self) -> bool

QRY_INCONSISTAN: File inconsistency in replica

source

pub fn qry_sys_error(&self) -> bool

QRY_SYS_ERROR: System error

source

pub fn qry_invalid_time_condition(&self) -> bool

QRY_INVALID_TIME_CONDITION: invalid time condition

source

pub fn qry_invalid_schema_version(&self) -> bool

QRY_INVALID_SCHEMA_VERSION: invalid schema version

source§

impl Code

source

pub fn as_error_str(&self) -> &'static str

Methods from Deref<Target = i32>§

1.43.0 · source

pub const MIN: i32 = -2_147_483_648i32

1.43.0 · source

pub const MAX: i32 = 2_147_483_647i32

1.53.0 · source

pub const BITS: u32 = 32u32

Trait Implementations§

source§

impl Clone for Code

source§

fn clone(&self) -> Code

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
source§

impl Debug for Code

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for Code

source§

fn default() -> Code

Returns the “default value” for a type. Read more
source§

impl Deref for Code

§

type Target = i32

The resulting type after dereferencing.
source§

fn deref(&self) -> &i32

Dereferences the value.
source§

impl DerefMut for Code

source§

fn deref_mut(&mut self) -> &mut i32

Mutably dereferences the value.
source§

impl<'de> Deserialize<'de> for Code

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<Code, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

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

impl Display for Code

source§

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

Formats the value using the given formatter. Read more
source§

impl From<Code> for i32

source§

fn from(c: Code) -> i32

Converts to this type from the input type.
source§

impl From<Code> for i64

source§

fn from(c: Code) -> i64

Converts to this type from the input type.
source§

impl From<i16> for Code

source§

fn from(c: i16) -> Code

Converts to this type from the input type.
source§

impl From<i32> for Code

source§

fn from(c: i32) -> Code

Converts to this type from the input type.
source§

impl From<i64> for Code

source§

fn from(c: i64) -> Code

Converts to this type from the input type.
source§

impl From<i8> for Code

source§

fn from(c: i8) -> Code

Converts to this type from the input type.
source§

impl From<u16> for Code

source§

fn from(c: u16) -> Code

Converts to this type from the input type.
source§

impl From<u32> for Code

source§

fn from(c: u32) -> Code

Converts to this type from the input type.
source§

impl From<u64> for Code

source§

fn from(c: u64) -> Code

Converts to this type from the input type.
source§

impl From<u8> for Code

source§

fn from(c: u8) -> Code

Converts to this type from the input type.
source§

impl Hash for Code

source§

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
source§

impl LowerHex for Code

source§

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

Formats the value using the given formatter.
source§

impl PartialEq<Code> for Code

source§

fn eq(&self, other: &Code) -> 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.
source§

impl PartialEq<i32> for Code

source§

fn eq(&self, other: &i32) -> 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.
source§

impl PartialEq<isize> for Code

source§

fn eq(&self, other: &isize) -> 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.
source§

impl PartialEq<usize> for Code

source§

fn eq(&self, other: &usize) -> 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.
source§

impl Serialize for Code

source§

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
source§

impl UpperHex for Code

source§

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

Formats the value using the given formatter.
source§

impl Copy for Code

source§

impl Eq for Code

source§

impl StructuralEq for Code

source§

impl StructuralPartialEq for Code

Auto Trait Implementations§

§

impl RefUnwindSafe for Code

§

impl Send for Code

§

impl Sync for Code

§

impl Unpin for Code

§

impl UnwindSafe for Code

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.

source§

impl<T> ToOwned for Twhere 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
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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