pub enum Error {
Show 85 variants
EmptyKey {
location: Location,
},
RegionOperatingRace {
location: Location,
peer_id: DatanodeId,
region_id: RegionId,
},
ConnectEtcd {
error: Error,
location: Location,
},
EtcdFailed {
error: Error,
location: Location,
},
EtcdTxnFailed {
max_operations: usize,
error: Error,
location: Location,
},
NextSequence {
err_msg: String,
location: Location,
},
UnexpectedSequenceValue {
err_msg: String,
location: Location,
},
TableInfoNotFound {
table: String,
location: Location,
},
RegisterProcedureLoader {
type_name: String,
location: Location,
source: Error,
},
SubmitProcedure {
location: Location,
source: Error,
},
QueryProcedure {
location: Location,
source: Error,
},
ProcedureNotFound {
location: Location,
pid: String,
},
ParseProcedureId {
location: Location,
key: String,
error: ParseIdError,
},
Unsupported {
operation: String,
location: Location,
},
WaitProcedure {
location: Location,
source: Error,
},
StartProcedureManager {
location: Location,
source: Error,
},
StopProcedureManager {
location: Location,
source: Error,
},
ProcedureOutput {
procedure_id: String,
err_msg: String,
location: Location,
},
ConvertRawTableInfo {
location: Location,
source: Error,
},
PrimaryKeyNotFound {
key: String,
location: Location,
},
BuildTableMeta {
table_name: String,
error: TableMetaBuilderError,
location: Location,
},
Table {
location: Location,
source: Error,
},
TableRouteNotFound {
table_id: TableId,
location: Location,
},
DecodeProto {
location: Location,
error: DecodeError,
},
EncodeJson {
location: Location,
error: Error,
},
DecodeJson {
location: Location,
error: Error,
},
SerializeToJson {
input: String,
error: Error,
location: Location,
},
DeserializeFromJson {
input: String,
error: Error,
location: Location,
},
PayloadNotExist {
location: Location,
},
SendMessage {
err_msg: String,
location: Location,
},
SerdeJson {
error: Error,
location: Location,
},
ParseOption {
key: String,
value: String,
location: Location,
},
RouteInfoCorrupted {
err_msg: String,
location: Location,
},
IllegalServerState {
code: i32,
err_msg: String,
location: Location,
},
ConvertAlterTableRequest {
source: Error,
location: Location,
},
InvalidProtoMsg {
err_msg: String,
location: Location,
},
Unexpected {
err_msg: String,
location: Location,
},
TableAlreadyExists {
table_name: String,
location: Location,
},
ViewAlreadyExists {
view_name: String,
location: Location,
},
FlowAlreadyExists {
flow_name: String,
location: Location,
},
SchemaAlreadyExists {
catalog: String,
schema: String,
location: Location,
},
ConvertRawKey {
location: Location,
error: Utf8Error,
},
TableNotFound {
table_name: String,
location: Location,
},
ViewNotFound {
view_name: String,
location: Location,
},
FlowNotFound {
flow_name: String,
location: Location,
},
FlowRouteNotFound {
flow_name: String,
location: Location,
},
SchemaNotFound {
table_schema: String,
location: Location,
},
InvalidMetadata {
err_msg: String,
location: Location,
},
InvalidViewInfo {
err_msg: String,
location: Location,
},
GetKvCache {
err_msg: String,
},
CacheNotGet {
key: String,
location: Location,
},
EtcdTxnOpResponse {
err_msg: String,
location: Location,
},
External {
location: Location,
source: BoxedError,
},
ResponseExceededSizeLimit {
location: Location,
source: BoxedError,
},
InvalidHeartbeatResponse {
location: Location,
},
OperateDatanode {
location: Location,
peer: Peer,
source: BoxedError,
},
RetryLater {
source: BoxedError,
},
EncodeWalOptions {
wal_options: WalOptions,
error: Error,
location: Location,
},
InvalidNumTopics {
num_topics: usize,
location: Location,
},
BuildKafkaClient {
broker_endpoints: Vec<String>,
location: Location,
error: Error,
},
TlsConfig {
location: Location,
source: Error,
},
ResolveKafkaEndpoint {
source: Error,
},
BuildKafkaCtrlClient {
location: Location,
error: Error,
},
BuildKafkaPartitionClient {
topic: String,
partition: i32,
location: Location,
error: Error,
},
ProduceRecord {
topic: String,
location: Location,
error: Error,
},
CreateKafkaWalTopic {
location: Location,
error: Error,
},
EmptyTopicPool {
location: Location,
},
UnexpectedLogicalRouteTable {
location: Location,
err_msg: String,
},
EmptyDdlTasks {
name: String,
location: Location,
},
MetadataCorruption {
err_msg: String,
location: Location,
},
AlterLogicalTablesInvalidArguments {
err_msg: String,
location: Location,
},
CreateLogicalTablesInvalidArguments {
err_msg: String,
location: Location,
},
InvalidNodeInfoKey {
key: String,
location: Location,
},
InvalidStatKey {
key: String,
location: Location,
},
ParseNum {
err_msg: String,
error: ParseIntError,
location: Location,
},
InvalidRole {
role: i32,
location: Location,
},
InvalidSetDatabaseOption {
key: String,
value: String,
location: Location,
},
InvalidUnsetDatabaseOption {
key: String,
location: Location,
},
MismatchPrefix {
prefix: String,
key: String,
location: Location,
},
MoveValues {
err_msg: String,
location: Location,
},
FromUtf8 {
name: String,
error: FromUtf8Error,
location: Location,
},
StrFromUtf8 {
name: String,
error: Utf8Error,
location: Location,
},
ValueNotExist {
location: Location,
},
GetCache {
source: Arc<Error>,
},
DatanodeTableInfoNotFound {
datanode_id: DatanodeId,
table_id: TableId,
location: Location,
},
}
Variants§
EmptyKey
Fields
§
location: Location
RegionOperatingRace
ConnectEtcd
EtcdFailed
EtcdTxnFailed
NextSequence
UnexpectedSequenceValue
TableInfoNotFound
RegisterProcedureLoader
SubmitProcedure
QueryProcedure
ProcedureNotFound
ParseProcedureId
Unsupported
WaitProcedure
StartProcedureManager
StopProcedureManager
ProcedureOutput
ConvertRawTableInfo
PrimaryKeyNotFound
BuildTableMeta
Table
TableRouteNotFound
DecodeProto
EncodeJson
DecodeJson
SerializeToJson
DeserializeFromJson
PayloadNotExist
Fields
§
location: Location
SendMessage
SerdeJson
ParseOption
RouteInfoCorrupted
IllegalServerState
ConvertAlterTableRequest
InvalidProtoMsg
Unexpected
TableAlreadyExists
ViewAlreadyExists
FlowAlreadyExists
SchemaAlreadyExists
ConvertRawKey
TableNotFound
ViewNotFound
FlowNotFound
FlowRouteNotFound
SchemaNotFound
InvalidMetadata
InvalidViewInfo
GetKvCache
CacheNotGet
EtcdTxnOpResponse
External
ResponseExceededSizeLimit
InvalidHeartbeatResponse
Fields
§
location: Location
OperateDatanode
RetryLater
Fields
§
source: BoxedError
EncodeWalOptions
InvalidNumTopics
BuildKafkaClient
TlsConfig
ResolveKafkaEndpoint
Fields
§
source: Error
BuildKafkaCtrlClient
BuildKafkaPartitionClient
ProduceRecord
CreateKafkaWalTopic
EmptyTopicPool
Fields
§
location: Location
UnexpectedLogicalRouteTable
EmptyDdlTasks
MetadataCorruption
AlterLogicalTablesInvalidArguments
CreateLogicalTablesInvalidArguments
InvalidNodeInfoKey
InvalidStatKey
ParseNum
InvalidRole
InvalidSetDatabaseOption
InvalidUnsetDatabaseOption
MismatchPrefix
MoveValues
FromUtf8
StrFromUtf8
ValueNotExist
Fields
§
location: Location
GetCache
DatanodeTableInfoNotFound
Implementations§
source§impl Error
impl Error
sourcepub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
pub fn retry_later<E: ErrorExt + Send + Sync + 'static>(err: E) -> Error
Creates a new Error::RetryLater error from source err
.
sourcepub fn is_retry_later(&self) -> bool
pub fn is_retry_later(&self) -> bool
Determine whether it is a retry later type through [StatusCode]
sourcepub fn is_exceeded_size_limit(&self) -> bool
pub fn is_exceeded_size_limit(&self) -> bool
Returns true if the response exceeds the size limit.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moresource§impl ErrorExt for Error
impl ErrorExt for Error
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Map this error to [StatusCode].
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the error as Any so that it can be
downcast to a specific implementation.
fn output_msg(&self) -> Stringwhere
Self: Sized,
§fn root_cause(&self) -> Option<&dyn Error>where
Self: Sized,
fn root_cause(&self) -> Option<&dyn Error>where
Self: Sized,
Find out root level error for nested error
source§impl<__T0> IntoError<Error> for AlterLogicalTablesInvalidArgumentsSnafu<__T0>
impl<__T0> IntoError<Error> for AlterLogicalTablesInvalidArgumentsSnafu<__T0>
source§impl<__T0> IntoError<Error> for BuildKafkaClientSnafu<__T0>
impl<__T0> IntoError<Error> for BuildKafkaClientSnafu<__T0>
source§impl IntoError<Error> for BuildKafkaCtrlClientSnafu
impl IntoError<Error> for BuildKafkaCtrlClientSnafu
source§impl<__T0, __T1> IntoError<Error> for BuildKafkaPartitionClientSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for BuildKafkaPartitionClientSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for BuildTableMetaSnafu<__T0>
impl<__T0> IntoError<Error> for BuildTableMetaSnafu<__T0>
source§type Source = TableMetaBuilderError
type Source = TableMetaBuilderError
The underlying error
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
source§impl<__T0> IntoError<Error> for CacheNotGetSnafu<__T0>
impl<__T0> IntoError<Error> for CacheNotGetSnafu<__T0>
source§impl IntoError<Error> for ConnectEtcdSnafu
impl IntoError<Error> for ConnectEtcdSnafu
source§impl IntoError<Error> for ConvertAlterTableRequestSnafu
impl IntoError<Error> for ConvertAlterTableRequestSnafu
source§impl IntoError<Error> for ConvertRawKeySnafu
impl IntoError<Error> for ConvertRawKeySnafu
source§impl IntoError<Error> for ConvertRawTableInfoSnafu
impl IntoError<Error> for ConvertRawTableInfoSnafu
source§impl IntoError<Error> for CreateKafkaWalTopicSnafu
impl IntoError<Error> for CreateKafkaWalTopicSnafu
source§impl<__T0> IntoError<Error> for CreateLogicalTablesInvalidArgumentsSnafu<__T0>
impl<__T0> IntoError<Error> for CreateLogicalTablesInvalidArgumentsSnafu<__T0>
source§impl<__T0, __T1> IntoError<Error> for DatanodeTableInfoNotFoundSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for DatanodeTableInfoNotFoundSnafu<__T0, __T1>
source§impl IntoError<Error> for DecodeJsonSnafu
impl IntoError<Error> for DecodeJsonSnafu
source§impl IntoError<Error> for DecodeProtoSnafu
impl IntoError<Error> for DecodeProtoSnafu
source§type Source = DecodeError
type Source = DecodeError
The underlying error
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
source§impl<__T0> IntoError<Error> for DeserializeFromJsonSnafu<__T0>
impl<__T0> IntoError<Error> for DeserializeFromJsonSnafu<__T0>
source§impl<__T0> IntoError<Error> for EmptyDdlTasksSnafu<__T0>
impl<__T0> IntoError<Error> for EmptyDdlTasksSnafu<__T0>
source§impl IntoError<Error> for EmptyKeySnafu
impl IntoError<Error> for EmptyKeySnafu
source§impl IntoError<Error> for EmptyTopicPoolSnafu
impl IntoError<Error> for EmptyTopicPoolSnafu
source§impl IntoError<Error> for EncodeJsonSnafu
impl IntoError<Error> for EncodeJsonSnafu
source§impl<__T0> IntoError<Error> for EncodeWalOptionsSnafu<__T0>
impl<__T0> IntoError<Error> for EncodeWalOptionsSnafu<__T0>
source§impl IntoError<Error> for EtcdFailedSnafu
impl IntoError<Error> for EtcdFailedSnafu
source§impl<__T0> IntoError<Error> for EtcdTxnFailedSnafu<__T0>
impl<__T0> IntoError<Error> for EtcdTxnFailedSnafu<__T0>
source§impl<__T0> IntoError<Error> for EtcdTxnOpResponseSnafu<__T0>
impl<__T0> IntoError<Error> for EtcdTxnOpResponseSnafu<__T0>
source§impl IntoError<Error> for ExternalSnafu
impl IntoError<Error> for ExternalSnafu
source§impl<__T0> IntoError<Error> for FlowAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<Error> for FlowAlreadyExistsSnafu<__T0>
source§impl<__T0> IntoError<Error> for FlowNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for FlowNotFoundSnafu<__T0>
source§impl<__T0> IntoError<Error> for FlowRouteNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for FlowRouteNotFoundSnafu<__T0>
source§impl<__T0> IntoError<Error> for FromUtf8Snafu<__T0>
impl<__T0> IntoError<Error> for FromUtf8Snafu<__T0>
source§type Source = FromUtf8Error
type Source = FromUtf8Error
The underlying error
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
source§impl IntoError<Error> for GetCacheSnafu
impl IntoError<Error> for GetCacheSnafu
source§impl<__T0> IntoError<Error> for GetKvCacheSnafu<__T0>
impl<__T0> IntoError<Error> for GetKvCacheSnafu<__T0>
source§impl<__T0, __T1> IntoError<Error> for IllegalServerStateSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for IllegalServerStateSnafu<__T0, __T1>
source§impl IntoError<Error> for InvalidHeartbeatResponseSnafu
impl IntoError<Error> for InvalidHeartbeatResponseSnafu
source§impl<__T0> IntoError<Error> for InvalidMetadataSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidMetadataSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidNodeInfoKeySnafu<__T0>
impl<__T0> IntoError<Error> for InvalidNodeInfoKeySnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidNumTopicsSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidNumTopicsSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidProtoMsgSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidProtoMsgSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidRoleSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidRoleSnafu<__T0>
source§impl<__T0, __T1> IntoError<Error> for InvalidSetDatabaseOptionSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for InvalidSetDatabaseOptionSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for InvalidStatKeySnafu<__T0>
impl<__T0> IntoError<Error> for InvalidStatKeySnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidUnsetDatabaseOptionSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidUnsetDatabaseOptionSnafu<__T0>
source§impl<__T0> IntoError<Error> for InvalidViewInfoSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidViewInfoSnafu<__T0>
source§impl<__T0> IntoError<Error> for MetadataCorruptionSnafu<__T0>
impl<__T0> IntoError<Error> for MetadataCorruptionSnafu<__T0>
source§impl<__T0, __T1> IntoError<Error> for MismatchPrefixSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for MismatchPrefixSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for MoveValuesSnafu<__T0>
impl<__T0> IntoError<Error> for MoveValuesSnafu<__T0>
source§impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>
impl<__T0> IntoError<Error> for NextSequenceSnafu<__T0>
source§impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>
impl<__T0> IntoError<Error> for OperateDatanodeSnafu<__T0>
source§impl<__T0> IntoError<Error> for ParseNumSnafu<__T0>
impl<__T0> IntoError<Error> for ParseNumSnafu<__T0>
source§type Source = ParseIntError
type Source = ParseIntError
The underlying error
source§fn into_error(self, error: Self::Source) -> Error
fn into_error(self, error: Self::Source) -> Error
Combine the information to produce the error
source§impl<__T0, __T1> IntoError<Error> for ParseOptionSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for ParseOptionSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for ParseProcedureIdSnafu<__T0>
impl<__T0> IntoError<Error> for ParseProcedureIdSnafu<__T0>
source§impl IntoError<Error> for PayloadNotExistSnafu
impl IntoError<Error> for PayloadNotExistSnafu
source§impl<__T0> IntoError<Error> for PrimaryKeyNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for PrimaryKeyNotFoundSnafu<__T0>
source§impl<__T0> IntoError<Error> for ProcedureNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for ProcedureNotFoundSnafu<__T0>
source§impl<__T0, __T1> IntoError<Error> for ProcedureOutputSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for ProcedureOutputSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for ProduceRecordSnafu<__T0>
impl<__T0> IntoError<Error> for ProduceRecordSnafu<__T0>
source§impl IntoError<Error> for QueryProcedureSnafu
impl IntoError<Error> for QueryProcedureSnafu
source§impl<__T0, __T1> IntoError<Error> for RegionOperatingRaceSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for RegionOperatingRaceSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>
impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>
source§impl IntoError<Error> for ResolveKafkaEndpointSnafu
impl IntoError<Error> for ResolveKafkaEndpointSnafu
source§impl IntoError<Error> for ResponseExceededSizeLimitSnafu
impl IntoError<Error> for ResponseExceededSizeLimitSnafu
source§impl IntoError<Error> for RetryLaterSnafu
impl IntoError<Error> for RetryLaterSnafu
source§impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>
impl<__T0> IntoError<Error> for RouteInfoCorruptedSnafu<__T0>
source§impl<__T0, __T1> IntoError<Error> for SchemaAlreadyExistsSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for SchemaAlreadyExistsSnafu<__T0, __T1>
source§impl<__T0> IntoError<Error> for SchemaNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for SchemaNotFoundSnafu<__T0>
source§impl<__T0> IntoError<Error> for SendMessageSnafu<__T0>
impl<__T0> IntoError<Error> for SendMessageSnafu<__T0>
source§impl IntoError<Error> for SerdeJsonSnafu
impl IntoError<Error> for SerdeJsonSnafu
source§impl<__T0> IntoError<Error> for SerializeToJsonSnafu<__T0>
impl<__T0> IntoError<Error> for SerializeToJsonSnafu<__T0>
source§impl IntoError<Error> for StartProcedureManagerSnafu
impl IntoError<Error> for StartProcedureManagerSnafu
source§impl IntoError<Error> for StopProcedureManagerSnafu
impl IntoError<Error> for StopProcedureManagerSnafu
source§impl<__T0> IntoError<Error> for StrFromUtf8Snafu<__T0>
impl<__T0> IntoError<Error> for StrFromUtf8Snafu<__T0>
source§impl IntoError<Error> for SubmitProcedureSnafu
impl IntoError<Error> for SubmitProcedureSnafu
source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>
source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>
source§impl<__T0> IntoError<Error> for TableNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for TableNotFoundSnafu<__T0>
source§impl<__T0> IntoError<Error> for TableRouteNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for TableRouteNotFoundSnafu<__T0>
source§impl IntoError<Error> for TableSnafu
impl IntoError<Error> for TableSnafu
source§impl IntoError<Error> for TlsConfigSnafu
impl IntoError<Error> for TlsConfigSnafu
source§impl<__T0> IntoError<Error> for UnexpectedLogicalRouteTableSnafu<__T0>
impl<__T0> IntoError<Error> for UnexpectedLogicalRouteTableSnafu<__T0>
source§impl<__T0> IntoError<Error> for UnexpectedSequenceValueSnafu<__T0>
impl<__T0> IntoError<Error> for UnexpectedSequenceValueSnafu<__T0>
source§impl<__T0> IntoError<Error> for UnexpectedSnafu<__T0>
impl<__T0> IntoError<Error> for UnexpectedSnafu<__T0>
source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>
impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>
source§impl IntoError<Error> for ValueNotExistSnafu
impl IntoError<Error> for ValueNotExistSnafu
source§impl<__T0> IntoError<Error> for ViewAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<Error> for ViewAlreadyExistsSnafu<__T0>
source§impl<__T0> IntoError<Error> for ViewNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for ViewNotFoundSnafu<__T0>
source§impl IntoError<Error> for WaitProcedureSnafu
impl IntoError<Error> for WaitProcedureSnafu
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§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
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.
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
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> 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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T, V> Convert<T> for Vwhere
V: Into<T>,
impl<T, V> Convert<T> for Vwhere
V: Into<T>,
fn convert(value: Self) -> T
fn convert_box(value: Box<Self>) -> Box<T>
fn convert_vec(value: Vec<Self>) -> Vec<T>
fn convert_vec_box(value: Vec<Box<Self>>) -> Vec<Box<T>>
fn convert_matrix(value: Vec<Vec<Self>>) -> Vec<Vec<T>>
fn convert_option(value: Option<Self>) -> Option<T>
fn convert_option_box(value: Option<Box<Self>>) -> Option<Box<T>>
fn convert_option_vec(value: Option<Vec<Self>>) -> Option<Vec<T>>
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.