Struct taos_error::Code

source ·
#[repr(transparent)]
pub struct Code(_);
Expand description

TDengine error code.

Implementations§

§

impl Code

pub const Success: Code = _

Success, 0

pub const Failed: Code = _

Unknown fails, 0xFFFF

pub const TscInvalidOperation: Code = _

TSC_INVALID_OPERATION: Invalid Operation

pub const TscInvalidQhandle: Code = _

TSC_INVALID_QHANDLE: Invalid qhandle

pub const TscInvalidTimeStamp: Code = _

TSC_INVALID_TIME_STAMP: Invalid combination of client/service time

pub const TscInvalidValue: Code = _

TSC_INVALID_VALUE: Invalid value in client

pub const TscInvalidVersion: Code = _

TSC_INVALID_VERSION: Invalid client version

pub const TscInvalidIe: Code = _

TSC_INVALID_IE: Invalid client ie

pub const TscInvalidFqdn: Code = _

TSC_INVALID_FQDN: Invalid host name

pub const TscInvalidUserLength: Code = _

TSC_INVALID_USER_LENGTH: Invalid user name

pub const TscInvalidPassLength: Code = _

TSC_INVALID_PASS_LENGTH: Invalid password

pub const TscInvalidDbLength: Code = _

TSC_INVALID_DB_LENGTH: Database name too long

pub const TscInvalidTableIdLength: Code = _

TSC_INVALID_TABLE_ID_LENGTH: Table name too long

pub const TscInvalidConnection: Code = _

TSC_INVALID_CONNECTION: Invalid connection

pub const TscOutOfMemory: Code = _

TSC_OUT_OF_MEMORY: System out of memory

pub const TscNoDiskspace: Code = _

TSC_NO_DISKSPACE: System out of disk space

pub const TscQueryCacheErased: Code = _

TSC_QUERY_CACHE_ERASED: Query cache erased

pub const TscQueryCancelled: Code = _

TSC_QUERY_CANCELLED: Query terminated

pub const TscSortedResTooMany: Code = _

TSC_SORTED_RES_TOO_MANY: Result set too large to be sorted

pub const TscAppError: Code = _

TSC_APP_ERROR: Application error

pub const TscActionInProgress: Code = _

TSC_ACTION_IN_PROGRESS: Action in progress

pub const TscDisconnected: Code = _

TSC_DISCONNECTED: Disconnected from service

pub const TscNoWriteAuth: Code = _

TSC_NO_WRITE_AUTH: No write permission

pub const TscConnKilled: Code = _

TSC_CONN_KILLED: Connection killed

pub const TscSqlSyntaxError: Code = _

TSC_SQL_SYNTAX_ERROR: Syntax error in SQL

pub const TscDbNotSelected: Code = _

TSC_DB_NOT_SELECTED: Database not specified or available

pub const TscInvalidTableName: Code = _

TSC_INVALID_TABLE_NAME: Table does not exist

pub const TscExceedSqlLimit: Code = _

TSC_EXCEED_SQL_LIMIT: SQL statement too long check maxSQLLength config

pub const TscFileEmpty: Code = _

TSC_FILE_EMPTY: File is empty

pub const TscLineSyntaxError: Code = _

TSC_LINE_SYNTAX_ERROR: Syntax error in Line

pub const TscNoMetaCached: Code = _

TSC_NO_META_CACHED: No table meta cached

pub const TscDupColNames: Code = _

TSC_DUP_COL_NAMES: duplicated column names

pub const TscInvalidTagLength: Code = _

TSC_INVALID_TAG_LENGTH: Invalid tag length

pub const TscInvalidColumnLength: Code = _

TSC_INVALID_COLUMN_LENGTH: Invalid column length

pub const TscDupTagNames: Code = _

TSC_DUP_TAG_NAMES: duplicated tag names

pub const TscInvalidJson: Code = _

TSC_INVALID_JSON: Invalid JSON format

pub const TscInvalidJsonType: Code = _

TSC_INVALID_JSON_TYPE: Invalid JSON data type

pub const TscInvalidJsonConfig: Code = _

TSC_INVALID_JSON_CONFIG: Invalid JSON configuration

pub const TscValueOutOfRange: Code = _

TSC_VALUE_OUT_OF_RANGE: Value out of range

pub const TscInvalidProtocolType: Code = _

TSC_INVALID_PROTOCOL_TYPE: Invalid line protocol type

pub const TscInvalidPrecisionType: Code = _

TSC_INVALID_PRECISION_TYPE: Invalid timestamp precision type

pub const TscResTooMany: Code = _

TSC_RES_TOO_MANY: Result set too large to be output

pub const TscInvalidSchemaVersion: Code = _

TSC_INVALID_SCHEMA_VERSION: invalid table schema version

pub const MndInvalidTopic: Code = _

MND_INVALID_TOPIC: Invalid topic nam

pub const MndInvalidTopicOption: Code = _

MND_INVALID_TOPIC_OPTION: Invalid topic optio

pub const MndInvalidTopicPartitons: Code = _

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

pub const MndTopicAlreadyExist: Code = _

MND_TOPIC_ALREADY_EXIST: Topic already exist

pub const TdbInvalidTableId: Code = _

TDB_INVALID_TABLE_ID: Invalid table ID

pub const TdbInvalidTableType: Code = _

TDB_INVALID_TABLE_TYPE: Invalid table type

pub const TdbIvdTbSchemaVersion: Code = _

TDB_IVD_TB_SCHEMA_VERSION: Invalid table schema version

pub const TdbTableAlreadyExist: Code = _

TDB_TABLE_ALREADY_EXIST: Table already exists

pub const TdbInvalidConfig: Code = _

TDB_INVALID_CONFIG: Invalid configuration

pub const TdbInitFailed: Code = _

TDB_INIT_FAILED: Tsdb init failed

pub const TdbNoDiskspace: Code = _

TDB_NO_DISKSPACE: No diskspace for tsdb

pub const TdbNoDiskPermissions: Code = _

TDB_NO_DISK_PERMISSIONS: No permission for disk files

pub const TdbFileCorrupted: Code = _

TDB_FILE_CORRUPTED: Data file(s) corrupted

pub const TdbOutOfMemory: Code = _

TDB_OUT_OF_MEMORY: Out of memory

pub const TdbTagVerOutOfDate: Code = _

TDB_TAG_VER_OUT_OF_DATE: Tag too old

pub const TdbTimestampOutOfRange: Code = _

TDB_TIMESTAMP_OUT_OF_RANGE: Timestamp data out of range

pub const TdbSubmitMsgMssedUp: Code = _

TDB_SUBMIT_MSG_MSSED_UP: Submit message is messed up

pub const TdbInvalidAction: Code = _

TDB_INVALID_ACTION: Invalid operation

pub const TdbInvalidCreateTbMsg: Code = _

TDB_INVALID_CREATE_TB_MSG: Invalid creation of table

pub const TdbNoTableDataInMem: Code = _

TDB_NO_TABLE_DATA_IN_MEM: No table data in memory skiplist

pub const TdbFileAlreadyExists: Code = _

TDB_FILE_ALREADY_EXISTS: File already exists

pub const TdbTableReconfigure: Code = _

TDB_TABLE_RECONFIGURE: Need to reconfigure table

pub const TdbIvdCreateTableInfo: Code = _

TDB_IVD_CREATE_TABLE_INFO: Invalid information to create table

pub const TdbNoAvailDisk: Code = _

TDB_NO_AVAIL_DISK: No available disk

pub const TdbMessedMsg: Code = _

TDB_MESSED_MSG: TSDB messed message

pub const TdbIvldTagVal: Code = _

TDB_IVLD_TAG_VAL: TSDB invalid tag value

pub const TdbNoCacheLastRow: Code = _

TDB_NO_CACHE_LAST_ROW: TSDB no cache last row data

pub const TdbIncompleteDfileset: Code = _

TDB_INCOMPLETE_DFILESET: TSDB incomplete DFileSet

pub const QryInvalidQhandle: Code = _

QRY_INVALID_QHANDLE: Invalid handle

pub const QryInvalidMsg: Code = _

QRY_INVALID_MSG: Invalid message

pub const QryNoDiskspace: Code = _

QRY_NO_DISKSPACE: No diskspace for query

pub const QryOutOfMemory: Code = _

QRY_OUT_OF_MEMORY: System out of memory

pub const QryAppError: Code = _

QRY_APP_ERROR: Unexpected generic error in query

pub const QryDupJoinKey: Code = _

QRY_DUP_JOIN_KEY: Duplicated join key

pub const QryExceedTagsLimit: Code = _

QRY_EXCEED_TAGS_LIMIT: Tag condition too many

pub const QryNotReady: Code = _

QRY_NOT_READY: Query not ready

pub const QryHasRsp: Code = _

QRY_HAS_RSP: Query should response

pub const QryInExec: Code = _

QRY_IN_EXEC: Multiple retrieval of this query

pub const QryTooManyTimewindow: Code = _

QRY_TOO_MANY_TIMEWINDOW: Too many time window in query

pub const QryNotEnoughBuffer: Code = _

QRY_NOT_ENOUGH_BUFFER: Query buffer limit has reached

pub const QryInconsistan: Code = _

QRY_INCONSISTAN: File inconsistency in replica

pub const QrySysError: Code = _

QRY_SYS_ERROR: System error

pub const QryInvalidTimeCondition: Code = _

QRY_INVALID_TIME_CONDITION: invalid time condition

pub const QryInvalidSchemaVersion: Code = _

QRY_INVALID_SCHEMA_VERSION: invalid schema version

§

impl Code

pub fn success(&self) -> bool

pub fn tsc_invalid_operation(&self) -> bool

TSC_INVALID_OPERATION: Invalid Operation

pub fn tsc_invalid_qhandle(&self) -> bool

TSC_INVALID_QHANDLE: Invalid qhandle

pub fn tsc_invalid_time_stamp(&self) -> bool

TSC_INVALID_TIME_STAMP: Invalid combination of client/service time

pub fn tsc_invalid_value(&self) -> bool

TSC_INVALID_VALUE: Invalid value in client

pub fn tsc_invalid_version(&self) -> bool

TSC_INVALID_VERSION: Invalid client version

pub fn tsc_invalid_ie(&self) -> bool

TSC_INVALID_IE: Invalid client ie

pub fn tsc_invalid_fqdn(&self) -> bool

TSC_INVALID_FQDN: Invalid host name

pub fn tsc_invalid_user_length(&self) -> bool

TSC_INVALID_USER_LENGTH: Invalid user name

pub fn tsc_invalid_pass_length(&self) -> bool

TSC_INVALID_PASS_LENGTH: Invalid password

pub fn tsc_invalid_db_length(&self) -> bool

TSC_INVALID_DB_LENGTH: Database name too long

pub fn tsc_invalid_table_id_length(&self) -> bool

TSC_INVALID_TABLE_ID_LENGTH: Table name too long

pub fn tsc_invalid_connection(&self) -> bool

TSC_INVALID_CONNECTION: Invalid connection

pub fn tsc_out_of_memory(&self) -> bool

TSC_OUT_OF_MEMORY: System out of memory

pub fn tsc_no_diskspace(&self) -> bool

TSC_NO_DISKSPACE: System out of disk space

pub fn tsc_query_cache_erased(&self) -> bool

TSC_QUERY_CACHE_ERASED: Query cache erased

pub fn tsc_query_cancelled(&self) -> bool

TSC_QUERY_CANCELLED: Query terminated

pub fn tsc_sorted_res_too_many(&self) -> bool

TSC_SORTED_RES_TOO_MANY: Result set too large to be sorted

pub fn tsc_app_error(&self) -> bool

TSC_APP_ERROR: Application error

pub fn tsc_action_in_progress(&self) -> bool

TSC_ACTION_IN_PROGRESS: Action in progress

pub fn tsc_disconnected(&self) -> bool

TSC_DISCONNECTED: Disconnected from service

pub fn tsc_no_write_auth(&self) -> bool

TSC_NO_WRITE_AUTH: No write permission

pub fn tsc_conn_killed(&self) -> bool

TSC_CONN_KILLED: Connection killed

pub fn tsc_sql_syntax_error(&self) -> bool

TSC_SQL_SYNTAX_ERROR: Syntax error in SQL

pub fn tsc_db_not_selected(&self) -> bool

TSC_DB_NOT_SELECTED: Database not specified or available

pub fn tsc_invalid_table_name(&self) -> bool

TSC_INVALID_TABLE_NAME: Table does not exist

pub fn tsc_exceed_sql_limit(&self) -> bool

TSC_EXCEED_SQL_LIMIT: SQL statement too long check maxSQLLength config

pub fn tsc_file_empty(&self) -> bool

TSC_FILE_EMPTY: File is empty

pub fn tsc_line_syntax_error(&self) -> bool

TSC_LINE_SYNTAX_ERROR: Syntax error in Line

pub fn tsc_no_meta_cached(&self) -> bool

TSC_NO_META_CACHED: No table meta cached

pub fn tsc_dup_col_names(&self) -> bool

TSC_DUP_COL_NAMES: duplicated column names

pub fn tsc_invalid_tag_length(&self) -> bool

TSC_INVALID_TAG_LENGTH: Invalid tag length

pub fn tsc_invalid_column_length(&self) -> bool

TSC_INVALID_COLUMN_LENGTH: Invalid column length

pub fn tsc_dup_tag_names(&self) -> bool

TSC_DUP_TAG_NAMES: duplicated tag names

pub fn tsc_invalid_json(&self) -> bool

TSC_INVALID_JSON: Invalid JSON format

pub fn tsc_invalid_json_type(&self) -> bool

TSC_INVALID_JSON_TYPE: Invalid JSON data type

pub fn tsc_invalid_json_config(&self) -> bool

TSC_INVALID_JSON_CONFIG: Invalid JSON configuration

pub fn tsc_value_out_of_range(&self) -> bool

TSC_VALUE_OUT_OF_RANGE: Value out of range

pub fn tsc_invalid_protocol_type(&self) -> bool

TSC_INVALID_PROTOCOL_TYPE: Invalid line protocol type

pub fn tsc_invalid_precision_type(&self) -> bool

TSC_INVALID_PRECISION_TYPE: Invalid timestamp precision type

pub fn tsc_res_too_many(&self) -> bool

TSC_RES_TOO_MANY: Result set too large to be output

pub fn tsc_invalid_schema_version(&self) -> bool

TSC_INVALID_SCHEMA_VERSION: invalid table schema version

pub fn mnd_invalid_topic(&self) -> bool

MND_INVALID_TOPIC: Invalid topic nam

pub fn mnd_invalid_topic_option(&self) -> bool

MND_INVALID_TOPIC_OPTION: Invalid topic optio

pub fn mnd_invalid_topic_partitons(&self) -> bool

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

pub fn mnd_topic_already_exist(&self) -> bool

MND_TOPIC_ALREADY_EXIST: Topic already exist

pub fn tdb_invalid_table_id(&self) -> bool

TDB_INVALID_TABLE_ID: Invalid table ID

pub fn tdb_invalid_table_type(&self) -> bool

TDB_INVALID_TABLE_TYPE: Invalid table type

pub fn tdb_ivd_tb_schema_version(&self) -> bool

TDB_IVD_TB_SCHEMA_VERSION: Invalid table schema version

pub fn tdb_table_already_exist(&self) -> bool

TDB_TABLE_ALREADY_EXIST: Table already exists

pub fn tdb_invalid_config(&self) -> bool

TDB_INVALID_CONFIG: Invalid configuration

pub fn tdb_init_failed(&self) -> bool

TDB_INIT_FAILED: Tsdb init failed

pub fn tdb_no_diskspace(&self) -> bool

TDB_NO_DISKSPACE: No diskspace for tsdb

pub fn tdb_no_disk_permissions(&self) -> bool

TDB_NO_DISK_PERMISSIONS: No permission for disk files

pub fn tdb_file_corrupted(&self) -> bool

TDB_FILE_CORRUPTED: Data file(s) corrupted

pub fn tdb_out_of_memory(&self) -> bool

TDB_OUT_OF_MEMORY: Out of memory

pub fn tdb_tag_ver_out_of_date(&self) -> bool

TDB_TAG_VER_OUT_OF_DATE: Tag too old

pub fn tdb_timestamp_out_of_range(&self) -> bool

TDB_TIMESTAMP_OUT_OF_RANGE: Timestamp data out of range

pub fn tdb_submit_msg_mssed_up(&self) -> bool

TDB_SUBMIT_MSG_MSSED_UP: Submit message is messed up

pub fn tdb_invalid_action(&self) -> bool

TDB_INVALID_ACTION: Invalid operation

pub fn tdb_invalid_create_tb_msg(&self) -> bool

TDB_INVALID_CREATE_TB_MSG: Invalid creation of table

pub fn tdb_no_table_data_in_mem(&self) -> bool

TDB_NO_TABLE_DATA_IN_MEM: No table data in memory skiplist

pub fn tdb_file_already_exists(&self) -> bool

TDB_FILE_ALREADY_EXISTS: File already exists

pub fn tdb_table_reconfigure(&self) -> bool

TDB_TABLE_RECONFIGURE: Need to reconfigure table

pub fn tdb_ivd_create_table_info(&self) -> bool

TDB_IVD_CREATE_TABLE_INFO: Invalid information to create table

pub fn tdb_no_avail_disk(&self) -> bool

TDB_NO_AVAIL_DISK: No available disk

pub fn tdb_messed_msg(&self) -> bool

TDB_MESSED_MSG: TSDB messed message

pub fn tdb_ivld_tag_val(&self) -> bool

TDB_IVLD_TAG_VAL: TSDB invalid tag value

pub fn tdb_no_cache_last_row(&self) -> bool

TDB_NO_CACHE_LAST_ROW: TSDB no cache last row data

pub fn tdb_incomplete_dfileset(&self) -> bool

TDB_INCOMPLETE_DFILESET: TSDB incomplete DFileSet

pub fn qry_invalid_qhandle(&self) -> bool

QRY_INVALID_QHANDLE: Invalid handle

pub fn qry_invalid_msg(&self) -> bool

QRY_INVALID_MSG: Invalid message

pub fn qry_no_diskspace(&self) -> bool

QRY_NO_DISKSPACE: No diskspace for query

pub fn qry_out_of_memory(&self) -> bool

QRY_OUT_OF_MEMORY: System out of memory

pub fn qry_app_error(&self) -> bool

QRY_APP_ERROR: Unexpected generic error in query

pub fn qry_dup_join_key(&self) -> bool

QRY_DUP_JOIN_KEY: Duplicated join key

pub fn qry_exceed_tags_limit(&self) -> bool

QRY_EXCEED_TAGS_LIMIT: Tag condition too many

pub fn qry_not_ready(&self) -> bool

QRY_NOT_READY: Query not ready

pub fn qry_has_rsp(&self) -> bool

QRY_HAS_RSP: Query should response

pub fn qry_in_exec(&self) -> bool

QRY_IN_EXEC: Multiple retrieval of this query

pub fn qry_too_many_timewindow(&self) -> bool

QRY_TOO_MANY_TIMEWINDOW: Too many time window in query

pub fn qry_not_enough_buffer(&self) -> bool

QRY_NOT_ENOUGH_BUFFER: Query buffer limit has reached

pub fn qry_inconsistan(&self) -> bool

QRY_INCONSISTAN: File inconsistency in replica

pub fn qry_sys_error(&self) -> bool

QRY_SYS_ERROR: System error

pub fn qry_invalid_time_condition(&self) -> bool

QRY_INVALID_TIME_CONDITION: invalid time condition

pub fn qry_invalid_schema_version(&self) -> bool

QRY_INVALID_SCHEMA_VERSION: invalid schema version

§

impl Code

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

source§

impl Code

source§

impl Code

source

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

Code from raw primitive type.

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

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<Self, __D::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

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

impl From<Code> for i16

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for i32

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for i64

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for i8

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for u16

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for u32

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for u64

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<Code> for u8

source§

fn from(c: Code) -> Self

Converts to this type from the input type.
source§

impl From<i16> for Code

source§

fn from(c: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Code

source§

fn from(c: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Code

source§

fn from(c: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Code

source§

fn from(c: i8) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Code

source§

fn from(c: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Code

source§

fn from(c: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Code

source§

fn from(c: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Code

source§

fn from(c: u8) -> Self

Converts to this type from the input type.
source§

impl Hash for Code

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

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

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::Ok, __S::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

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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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.
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.
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>,