Enum Db

Source
#[non_exhaustive]
pub enum Db {
Show 192 variants Unreachable(&'static str), Deprecated(String), Thrown(String), Ds(String), Tx(String), TxFailure, TxFinished, TxReadonly, TxConditionNotMet, TxKeyAlreadyExists, TxKeyTooLarge, TxValueTooLarge, TxTooLarge, NsEmpty, DbEmpty, QueryEmpty, QueryRemaining, InvalidQuery(RenderedError), InvalidContent { value: Value, }, InvalidMerge { value: Value, }, InvalidPatch { message: String, }, PatchTest { expected: String, got: String, }, HttpDisabled, InvalidParam { name: String, }, InvalidField { line: usize, field: String, }, InvalidFetch { value: Value, }, InvalidSplit { line: usize, field: String, }, InvalidOrder { line: usize, field: String, }, InvalidGroup { line: usize, field: String, }, InvalidLimit { value: String, }, InvalidStart { value: String, }, InvalidScript { message: String, }, InvalidModel { message: String, }, InvalidFunction { name: String, message: String, }, InvalidArguments { name: String, message: String, }, FunctionCheck { name: String, value: String, check: String, }, InvalidUrl(String), InvalidVectorDimension { current: usize, expected: usize, }, InvalidVectorDistance { left: SharedVector, right: SharedVector, dist: f64, }, InvalidVectorType { current: String, expected: &'static str, }, InvalidVectorValue(String), InvalidRegex(String), InvalidTimeout(u64), QueryTimedout, QueryCancelled, QueryNotExecuted, QueryNotExecutedDetail { message: String, }, NsNotAllowed { ns: String, }, DbNotAllowed { db: String, }, NsNotFound { value: String, }, NlNotFound { value: String, }, DbNotFound { value: String, }, DlNotFound { value: String, }, EvNotFound { value: String, }, FcNotFound { value: String, }, FdNotFound { value: String, }, MlNotFound { value: String, }, ClAlreadyExists { value: String, }, NdNotFound { value: String, }, PaNotFound { value: String, }, TbNotFound { value: String, }, LvNotFound { value: String, }, LqNotFound { value: String, }, AzNotFound { value: String, }, IxNotFound { value: String, }, IdNotFound { value: String, }, UnsupportedDistance(Distance), UserRootNotFound { value: String, }, UserNsNotFound { value: String, ns: String, }, UserDbNotFound { value: String, ns: String, db: String, }, RealtimeDisabled, ComputationDepthExceeded, InvalidStatementTarget { value: String, }, CreateStatement { value: String, }, UpsertStatement { value: String, }, UpdateStatement { value: String, }, RelateStatement { value: String, }, RelateStatementIn { value: String, }, RelateStatementId { value: String, }, RelateStatementOut { value: String, }, DeleteStatement { value: String, }, InsertStatement { value: String, }, InsertStatementIn { value: String, }, InsertStatementId { value: String, }, InsertStatementOut { value: String, }, LiveStatement { value: String, }, KillStatement { value: String, }, SingleOnlyOutput, TablePermissions { table: String, }, ParamPermissions { name: String, }, FunctionPermissions { name: String, }, TableIsView { table: String, }, RecordExists { thing: String, }, IndexExists { thing: Thing, index: String, value: String, }, TableCheck { thing: String, relation: bool, target_type: TableType, }, FieldCheck { thing: String, value: String, field: Idiom, check: String, }, FieldValue { thing: String, value: String, field: Idiom, check: String, }, FieldReadonly { thing: String, field: Idiom, }, IdMismatch { value: String, }, IdInvalid { value: String, }, CoerceTo { from: Value, into: String, }, ConvertTo { from: Value, into: String, }, LengthInvalid { kind: String, size: usize, }, TryAdd(String, String), TrySub(String, String), TryMul(String, String), TryDiv(String, String), TryRem(String, String), TryPow(String, String), TryNeg(String), TryFrom(String, &'static str), Http(String), Channel(String), Io(Error), Encode(Error), Decode(Error), Revision(Error), CorruptedIndex(&'static str), NoIndexFoundForMatch { value: String, }, AnalyzerError(String), HighlightError(String), Bincode(Box<ErrorKind>), FstError(Error), Utf8Error(FromUtf8Error), ObsError(Error), ModelComputation(String), FeatureNotYetImplemented { feature: String, }, DuplicatedMatchRef { mr: u8, }, TimestampOverflow(String), Internal(String), Unimplemented(String), CorruptedVersionstampInKey(Error), InvalidLevel(String), IamError(Error), ScriptingNotAllowed, FunctionNotAllowed(String), NetTargetNotAllowed(String), TokenMakingFailed, NoRecordFound, SignupQueryFailed, SigninQueryFailed, MissingUserOrPass, NoSigninTarget, InvalidPass, InvalidAuth, InvalidSignup, UnknownAuth, MissingTokenHeader(String), MissingTokenClaim(String), MissingStorageEngine, AzAlreadyExists { value: String, }, DbAlreadyExists { value: String, }, EvAlreadyExists { value: String, }, FdAlreadyExists { value: String, }, FcAlreadyExists { value: String, }, IxAlreadyExists { value: String, }, MlAlreadyExists { value: String, }, NsAlreadyExists { value: String, }, PaAlreadyExists { value: String, }, TbAlreadyExists { value: String, }, NtAlreadyExists { value: String, }, DtAlreadyExists { value: String, }, UserRootAlreadyExists { value: String, }, UserNsAlreadyExists { value: String, ns: String, }, UserDbAlreadyExists { value: String, ns: String, db: String, }, ExpiredSession, NodeAgent(&'static str), Serialization(String), AccessRootAlreadyExists { ac: String, }, AccessNsAlreadyExists { ac: String, ns: String, }, AccessDbAlreadyExists { ac: String, ns: String, db: String, }, AccessRootNotFound { ac: String, }, AccessGrantRootNotFound { ac: String, gr: String, }, AccessNsNotFound { ac: String, ns: String, }, AccessGrantNsNotFound { ac: String, gr: String, ns: String, }, AccessDbNotFound { ac: String, ns: String, db: String, }, AccessGrantDbNotFound { ac: String, gr: String, ns: String, db: String, }, AccessLevelMismatch, AccessMethodMismatch, AccessNotFound, AccessInvalidDuration, AccessInvalidExpiration, AccessRecordSignupQueryFailed, AccessRecordSigninQueryFailed, AccessRecordNoSignup, AccessRecordNoSignin, AccessBearerMissingKey, AccessGrantBearerInvalid, AccessGrantInvalidSubject, AccessGrantRevoked, TbInvalid { value: String, }, UnsupportedDestructure { variant: String, },
}
Expand description

An error originating from an embedded SurrealDB database.

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

Unreachable(&'static str)

The database encountered unreachable logic

§

Deprecated(String)

Statement has been deprecated

§

Thrown(String)

A custom error has been thrown

§

Ds(String)

There was a problem with the underlying datastore

§

Tx(String)

There was a problem with a datastore transaction

§

TxFailure

There was an error when starting a new datastore transaction

§

TxFinished

The transaction was already cancelled or committed

§

TxReadonly

The current transaction was created as read-only

§

TxConditionNotMet

The conditional value in the request was not equal

§

TxKeyAlreadyExists

The key being inserted in the transaction already exists

§

TxKeyTooLarge

The key exceeds a limit set by the KV store

§

TxValueTooLarge

The value exceeds a limit set by the KV store

§

TxTooLarge

The transaction writes too much data for the KV store

§

NsEmpty

No namespace has been selected

§

DbEmpty

No database has been selected

§

QueryEmpty

No SQL query has been specified

§

QueryRemaining

There was an error with the SQL query

§

InvalidQuery(RenderedError)

There was an error with the SQL query

§

InvalidContent

There was an error with the SQL query

Fields

§value: Value
§

InvalidMerge

There was an error with the SQL query

Fields

§value: Value
§

InvalidPatch

There was an error with the provided JSON Patch

Fields

§message: String
§

PatchTest

Given test operation failed for JSON Patch

Fields

§expected: String
§

HttpDisabled

Remote HTTP request functions are not enabled

§

InvalidParam

it is not possible to set a variable with the specified name

Fields

§name: String
§

InvalidField

Fields

§line: usize
§field: String
§

InvalidFetch

The FETCH clause accepts idioms, strings and fields.

Fields

§value: Value
§

InvalidSplit

Fields

§line: usize
§field: String
§

InvalidOrder

Fields

§line: usize
§field: String
§

InvalidGroup

Fields

§line: usize
§field: String
§

InvalidLimit

The LIMIT clause must evaluate to a positive integer

Fields

§value: String
§

InvalidStart

The START clause must evaluate to a positive integer

Fields

§value: String
§

InvalidScript

There was an error with the provided JavaScript code

Fields

§message: String
§

InvalidModel

There was an error with the provided machine learning model

Fields

§message: String
§

InvalidFunction

There was a problem running the specified function

Fields

§name: String
§message: String
§

InvalidArguments

The wrong quantity or magnitude of arguments was given for the specified function

Fields

§name: String
§message: String
§

FunctionCheck

The wrong quantity or magnitude of arguments was given for the specified function

Fields

§name: String
§value: String
§check: String
§

InvalidUrl(String)

The URL is invalid

§

InvalidVectorDimension

The size of the vector is incorrect

Fields

§current: usize
§expected: usize
§

InvalidVectorDistance

The size of the vector is incorrect

Fields

§left: SharedVector
§right: SharedVector
§dist: f64
§

InvalidVectorType

The size of the vector is incorrect

Fields

§current: String
§expected: &'static str
§

InvalidVectorValue(String)

The size of the vector is incorrect

§

InvalidRegex(String)

Invalid regular expression

§

InvalidTimeout(u64)

Invalid timeout

§

QueryTimedout

The query timedout

§

QueryCancelled

The query did not execute, because the transaction was cancelled

§

QueryNotExecuted

The query did not execute, because the transaction has failed

§

QueryNotExecutedDetail

The query did not execute, because the transaction has failed (with a message)

Fields

§message: String
§

NsNotAllowed

The permissions do not allow for changing to the specified namespace

Fields

§

DbNotAllowed

The permissions do not allow for changing to the specified database

Fields

§

NsNotFound

The requested namespace does not exist

Fields

§value: String
§

NlNotFound

The requested namespace login does not exist

Fields

§value: String
§

DbNotFound

The requested database does not exist

Fields

§value: String
§

DlNotFound

The requested database login does not exist

Fields

§value: String
§

EvNotFound

The requested event does not exist

Fields

§value: String
§

FcNotFound

The requested function does not exist

Fields

§value: String
§

FdNotFound

The requested field does not exist

Fields

§value: String
§

MlNotFound

The requested model does not exist

Fields

§value: String
§

ClAlreadyExists

Fields

§value: String
§

NdNotFound

Fields

§value: String
§

PaNotFound

The requested param does not exist

Fields

§value: String
§

TbNotFound

The requested table does not exist

Fields

§value: String
§

LvNotFound

The requested live query does not exist

Fields

§value: String
§

LqNotFound

The requested cluster live query does not exist

Fields

§value: String
§

AzNotFound

The requested analyzer does not exist

Fields

§value: String
§

IxNotFound

The requested analyzer does not exist

Fields

§value: String
§

IdNotFound

The requested record does not exist

Fields

§value: String
§

UnsupportedDistance(Distance)

§

UserRootNotFound

The requested root user does not exist

Fields

§value: String
§

UserNsNotFound

The requested namespace user does not exist

Fields

§value: String
§

UserDbNotFound

The requested database user does not exist

Fields

§value: String
§

RealtimeDisabled

Unable to perform the realtime query

§

ComputationDepthExceeded

Reached excessive computation depth due to functions, subqueries, or futures

§

InvalidStatementTarget

Can not execute statement using the specified value

Fields

§value: String
§

CreateStatement

Can not execute CREATE statement using the specified value

Fields

§value: String
§

UpsertStatement

Can not execute UPSERT statement using the specified value

Fields

§value: String
§

UpdateStatement

Can not execute UPDATE statement using the specified value

Fields

§value: String
§

RelateStatement

Can not execute RELATE statement using the specified value

Fields

§value: String
§

RelateStatementIn

Can not execute RELATE statement using the specified value

Fields

§value: String
§

RelateStatementId

Can not execute RELATE statement using the specified value

Fields

§value: String
§

RelateStatementOut

Can not execute RELATE statement using the specified value

Fields

§value: String
§

DeleteStatement

Can not execute DELETE statement using the specified value

Fields

§value: String
§

InsertStatement

Can not execute INSERT statement using the specified value

Fields

§value: String
§

InsertStatementIn

Can not execute INSERT statement using the specified value

Fields

§value: String
§

InsertStatementId

Can not execute INSERT statement using the specified value

Fields

§value: String
§

InsertStatementOut

Can not execute INSERT statement using the specified value

Fields

§value: String
§

LiveStatement

Can not execute LIVE statement using the specified value

Fields

§value: String
§

KillStatement

Can not execute KILL statement using the specified id

Fields

§value: String
§

SingleOnlyOutput

Can not execute CREATE statement using the specified value

§

TablePermissions

The permissions do not allow this query to be run on this table

Fields

§table: String
§

ParamPermissions

The permissions do not allow this query to be run on this table

Fields

§name: String
§

FunctionPermissions

The permissions do not allow this query to be run on this table

Fields

§name: String
§

TableIsView

The specified table can not be written as it is setup as a foreign table view

Fields

§table: String
§

RecordExists

A database entry for the specified record already exists

Fields

§thing: String
§

IndexExists

A database index entry for the specified record already exists

Fields

§thing: Thing
§index: String
§value: String
§

TableCheck

The specified table is not configured for the type of record being added

Fields

§thing: String
§relation: bool
§target_type: TableType
§

FieldCheck

The specified field did not conform to the field type check

Fields

§thing: String
§value: String
§field: Idiom
§check: String
§

FieldValue

The specified field did not conform to the field ASSERT clause

Fields

§thing: String
§value: String
§field: Idiom
§check: String
§

FieldReadonly

The specified field did not conform to the field ASSERT clause

Fields

§thing: String
§field: Idiom
§

IdMismatch

Found a record id for the record but we are creating a specific record

Fields

§value: String
§

IdInvalid

Found a record id for the record but this is not a valid id

Fields

§value: String
§

CoerceTo

Unable to coerce to a value to another value

Fields

§from: Value
§into: String
§

ConvertTo

Unable to convert a value to another value

Fields

§from: Value
§into: String
§

LengthInvalid

Unable to coerce to a value to another value

Fields

§kind: String
§size: usize
§

TryAdd(String, String)

Cannot perform addition

§

TrySub(String, String)

Cannot perform subtraction

§

TryMul(String, String)

Cannot perform multiplication

§

TryDiv(String, String)

Cannot perform division

§

TryRem(String, String)

Cannot perform remainder

§

TryPow(String, String)

Cannot perform power

§

TryNeg(String)

Cannot perform negation

§

TryFrom(String, &'static str)

It’s is not possible to convert between the two types

§

Http(String)

There was an error processing a remote HTTP request

§

Channel(String)

There was an error processing a value in parallel

§

Io(Error)

Represents an underlying error with IO encoding / decoding

§

Encode(Error)

Represents an error when encoding a key-value entry

§

Decode(Error)

Represents an error when decoding a key-value entry

§

Revision(Error)

Represents an underlying error with versioned data encoding / decoding

§

CorruptedIndex(&'static str)

The index has been found to be inconsistent

§

NoIndexFoundForMatch

The query planner did not find an index able to support the match @@ for a given expression

Fields

§value: String
§

AnalyzerError(String)

Represents an error when analyzing a value

§

HighlightError(String)

Represents an error when trying to highlight a value

§

Bincode(Box<ErrorKind>)

Represents an underlying error with Bincode serializing / deserializing

§

FstError(Error)

Represents an underlying error with FST

§

Utf8Error(FromUtf8Error)

Represents an underlying error while reading UTF8 characters

§

ObsError(Error)

Represents an underlying error with the Object Store

§

ModelComputation(String)

There was an error with model computation

§

FeatureNotYetImplemented

The feature has not yet being implemented

Fields

§feature: String
§

DuplicatedMatchRef

Duplicated match references are not allowed

Fields

§mr: u8
§

TimestampOverflow(String)

Represents a failure in timestamp arithmetic related to database internals

§

Internal(String)

Internal server error This should be used extremely sporadically, since we lose the type of error as a consequence There will be times when it is useful, such as with unusual type conversion errors

§

Unimplemented(String)

Unimplemented functionality

§

CorruptedVersionstampInKey(Error)

§

InvalidLevel(String)

Invalid level

§

IamError(Error)

Represents an underlying IAM error

§

ScriptingNotAllowed

Scripting is not allowed

§

FunctionNotAllowed(String)

Function is not allowed

§

NetTargetNotAllowed(String)

Network target is not allowed

§

TokenMakingFailed

§

NoRecordFound

§

SignupQueryFailed

§

SigninQueryFailed

§

MissingUserOrPass

§

NoSigninTarget

§

InvalidPass

§

InvalidAuth

There was an error with authentication

§

InvalidSignup

There was an error with signing up

§

UnknownAuth

Auth was expected to be set but was unknown

§

MissingTokenHeader(String)

Auth requires a token header which is missing

§

MissingTokenClaim(String)

Auth requires a token claim which is missing

§

MissingStorageEngine

The db is running without an available storage engine

§

AzAlreadyExists

The requested analyzer already exists

Fields

§value: String
§

DbAlreadyExists

The requested database already exists

Fields

§value: String
§

EvAlreadyExists

The requested event already exists

Fields

§value: String
§

FdAlreadyExists

The requested field already exists

Fields

§value: String
§

FcAlreadyExists

The requested function already exists

Fields

§value: String
§

IxAlreadyExists

The requested index already exists

Fields

§value: String
§

MlAlreadyExists

The requested model already exists

Fields

§value: String
§

NsAlreadyExists

The requested namespace already exists

Fields

§value: String
§

PaAlreadyExists

The requested param already exists

Fields

§value: String
§

TbAlreadyExists

The requested table already exists

Fields

§value: String
§

NtAlreadyExists

The requested namespace token already exists

Fields

§value: String
§

DtAlreadyExists

The requested database token already exists

Fields

§value: String
§

UserRootAlreadyExists

The requested user already exists

Fields

§value: String
§

UserNsAlreadyExists

The requested namespace user already exists

Fields

§value: String
§

UserDbAlreadyExists

The requested database user already exists

Fields

§value: String
§

ExpiredSession

The session has expired either because the token used to establish it has expired or because an expiration was explicitly defined when establishing it

§

NodeAgent(&'static str)

A node task has failed

§

Serialization(String)

The supplied type could not be serialiazed into sql::Value

§

AccessRootAlreadyExists

The requested root access method already exists

Fields

§

AccessNsAlreadyExists

The requested namespace access method already exists

Fields

§

AccessDbAlreadyExists

The requested database access method already exists

Fields

§

AccessRootNotFound

The requested root access method does not exist

Fields

§

AccessGrantRootNotFound

The requested root access grant does not exist

Fields

§

AccessNsNotFound

The requested namespace access method does not exist

Fields

§

AccessGrantNsNotFound

The requested namespace access grant does not exist

Fields

§

AccessDbNotFound

The requested database access method does not exist

Fields

§

AccessGrantDbNotFound

The requested database access grant does not exist

Fields

§

AccessLevelMismatch

The access method cannot be defined on the requested level

§

AccessMethodMismatch

§

AccessNotFound

§

AccessInvalidDuration

§

AccessInvalidExpiration

§

AccessRecordSignupQueryFailed

§

AccessRecordSigninQueryFailed

§

AccessRecordNoSignup

§

AccessRecordNoSignin

§

AccessBearerMissingKey

§

AccessGrantBearerInvalid

§

AccessGrantInvalidSubject

§

AccessGrantRevoked

§

TbInvalid

Found a table name for the record but this is not a valid table

Fields

§value: String
§

UnsupportedDestructure

A destructuring variant was used in a context where it is not supported

Fields

§variant: String

Implementations§

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl Error for Error

Source§

fn custom<T>(msg: T) -> Error
where T: Display,

Used when a Serialize implementation encounters any error while serializing a type. Read more
Source§

impl From<Box<ErrorKind>> for Error

Source§

fn from(source: Box<ErrorKind>) -> Error

Converts to this type from the input type.
Source§

impl From<CaughtError<'_>> for Error

Source§

fn from(e: CaughtError<'_>) -> Error

Converts to this type from the input type.
Source§

impl From<DecodeError> for Error

Source§

fn from(_: DecodeError) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(e: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Db) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(_: Error) -> Error

Converts to this type from the input type.
Source§

impl From<Error> for String

Source§

fn from(e: Error) -> String

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for Error

Source§

fn from(source: FromUtf8Error) -> Error

Converts to this type from the input type.
Source§

impl From<Reason> for Error

Source§

fn from(reason: Reason) -> Error

Converts to this type from the input type.
Source§

impl From<RecvError> for Error

Source§

fn from(e: RecvError) -> Error

Converts to this type from the input type.
Source§

impl From<RpcError> for Error

Source§

fn from(value: RpcError) -> Error

Converts to this type from the input type.
Source§

impl<T> From<SendError<T>> for Error

Source§

fn from(e: SendError<T>) -> Error

Converts to this type from the input type.
Source§

impl<S, D, I> From<SortError<S, D, I>> for Error
where S: Error, D: Error, I: Error,

Source§

fn from(e: SortError<S, D, I>) -> Error

Converts to this type from the input type.
Source§

impl Serialize for Error

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

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsErrorSource for T
where T: Error + 'static,

Source§

fn as_error_source(&self) -> &(dyn Error + 'static)

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers.
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

Source§

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

Source§

fn to_string(&self) -> String

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool

Source§

impl<T> ParallelSend for T
where T: Send,