pub enum Error {
Show 140 variants
ChooseItems {
location: Location,
error: Error,
},
ExceededDeadline {
location: Location,
operation: String,
},
PeerUnavailable {
location: Location,
peer_id: u64,
},
ListActiveFrontends {
location: Location,
source: Error,
},
ListActiveDatanodes {
location: Location,
source: Error,
},
ListActiveFlownodes {
location: Location,
source: Error,
},
NoAvailableFrontend {
location: Location,
},
MigrationRunning {
location: Location,
region_id: RegionId,
},
RegionMigrated {
location: Location,
region_id: RegionId,
target_peer_id: u64,
},
MigrationAbort {
location: Location,
reason: String,
},
RegionOperatingRace {
location: Location,
peer_id: DatanodeId,
region_id: RegionId,
},
InitDdlManager {
location: Location,
source: Error,
},
InitReconciliationManager {
location: Location,
source: Error,
},
InitMetadata {
location: Location,
source: Error,
},
NextSequence {
location: Location,
source: Error,
},
SetNextSequence {
location: Location,
source: Error,
},
PeekSequence {
location: Location,
source: Error,
},
StartTelemetryTask {
location: Location,
source: Error,
},
SubmitDdlTask {
location: Location,
source: Error,
},
SubmitReconcileProcedure {
location: Location,
source: Error,
},
InvalidateTableCache {
location: Location,
source: Error,
},
ListCatalogs {
location: Location,
source: BoxedError,
},
ListSchemas {
location: Location,
catalog: String,
source: BoxedError,
},
ListTables {
location: Location,
catalog: String,
schema: String,
source: BoxedError,
},
Join {
location: Location,
error: JoinError,
},
NoEnoughAvailableNode {
location: Location,
required: usize,
available: usize,
select_target: SelectTarget,
},
SendShutdownSignal {
error: SendError<()>,
},
ShutdownServer {
location: Location,
source: Error,
server: String,
},
EmptyKey {
location: Location,
},
EtcdFailed {
error: Error,
location: Location,
},
ConnectEtcd {
error: Error,
location: Location,
},
FileIo {
error: Error,
location: Location,
path: String,
},
TcpBind {
addr: String,
error: Error,
location: Location,
},
StartGrpc {
error: Error,
location: Location,
},
StartHttp {
location: Location,
source: Error,
},
ParseAddr {
addr: String,
error: AddrParseError,
},
InvalidLeaseKey {
key: String,
location: Location,
},
InvalidStatKey {
key: String,
location: Location,
},
InvalidInactiveRegionKey {
key: String,
location: Location,
},
LeaseKeyFromUtf8 {
error: FromUtf8Error,
location: Location,
},
LeaseValueFromUtf8 {
error: FromUtf8Error,
location: Location,
},
InvalidRegionKeyFromUtf8 {
error: FromUtf8Error,
location: Location,
},
SerializeToJson {
input: String,
error: Error,
location: Location,
},
DeserializeFromJson {
input_len: usize,
error: Error,
location: Location,
},
SerializeConfig {
error: Error,
location: Location,
},
ParseNum {
err_msg: String,
error: ParseIntError,
location: Location,
},
ParseBool {
err_msg: String,
error: ParseBoolError,
location: Location,
},
DowngradeLeader {
region_id: RegionId,
location: Location,
source: BoxedError,
},
LeaderPeerChanged {
msg: String,
location: Location,
},
InvalidArguments {
err_msg: String,
location: Location,
},
ManualGcRejectedByMaintenanceMode {
location: Location,
},
ParseMySqlUrl {
error: Error,
mysql_url: String,
location: Location,
},
DecodeSqlValue {
error: Error,
location: Location,
},
TableRouteNotFound {
table_id: TableId,
location: Location,
},
RegionRouteNotFound {
region_id: RegionId,
location: Location,
},
TableInfoNotFound {
table_id: TableId,
location: Location,
},
DatanodeTableNotFound {
table_id: TableId,
datanode_id: DatanodeId,
location: Location,
},
NoLeader {
location: Location,
},
LeaderLeaseExpired {
location: Location,
},
LeaderLeaseChanged {
location: Location,
},
TableNotFound {
name: String,
location: Location,
},
UnsupportedSelectorType {
selector_type: String,
location: Location,
},
Unexpected {
violated: String,
location: Location,
},
CreateChannel {
location: Location,
source: Error,
},
BatchGet {
error: Status,
location: Location,
},
Range {
error: Status,
location: Location,
},
ResponseHeaderNotFound {
location: Location,
},
IsNotLeader {
node_addr: String,
location: Location,
},
InvalidHttpBody {
error: Error,
location: Location,
},
ExceededRetryLimit {
func_name: String,
retry_num: usize,
location: Location,
},
InvalidUtf8Value {
error: FromUtf8Error,
location: Location,
},
MissingRequiredParameter {
param: String,
},
StartProcedureManager {
location: Location,
source: Error,
},
StopProcedureManager {
location: Location,
source: Error,
},
WaitProcedure {
location: Location,
source: Error,
},
QueryProcedure {
location: Location,
source: Error,
},
ProcedureNotFound {
location: Location,
pid: String,
},
SubmitProcedure {
location: Location,
source: Error,
},
PruneTaskAlreadyRunning {
topic: String,
location: Location,
},
SchemaAlreadyExists {
schema_name: String,
location: Location,
},
TableAlreadyExists {
table_name: String,
location: Location,
},
PusherNotFound {
pusher_id: String,
location: Location,
},
PushMessage {
err_msg: String,
location: Location,
},
MailboxClosed {
id: u64,
location: Location,
},
MailboxTimeout {
id: u64,
location: Location,
},
MailboxReceiver {
id: u64,
err_msg: String,
location: Location,
},
MailboxChannelClosed {
channel: Channel,
location: Location,
},
MissingRequestHeader {
location: Location,
},
RegisterProcedureLoader {
type_name: String,
location: Location,
source: Error,
},
UnexpectedInstructionReply {
mailbox_message: String,
reason: String,
location: Location,
},
RetryLater {
reason: String,
location: Location,
},
RetryLaterWithSource {
reason: String,
location: Location,
source: BoxedError,
},
ConvertProtoData {
location: Location,
source: Error,
},
Other {
source: BoxedError,
location: Location,
},
TableMetadataManager {
source: Error,
location: Location,
},
RuntimeSwitchManager {
source: Error,
location: Location,
},
KvBackend {
source: Error,
location: Location,
},
PublishMessage {
error: SendError<Message>,
location: Location,
},
TooManyPartitions {
location: Location,
},
RepartitionCreateSubtasks {
source: Error,
location: Location,
},
RepartitionGcRequirement {
source: Error,
location: Location,
},
InspectRepartitionProcedures {
source: Error,
location: Location,
},
RepartitionGcRequired {
location: Location,
},
RepartitionSourceExprMismatch {
expr: String,
location: Location,
},
RepartitionSubprocedureStateReceiver {
procedure_id: ProcedureId,
source: Error,
location: Location,
},
Unsupported {
operation: String,
location: Location,
},
UnexpectedLogicalRouteTable {
location: Location,
err_msg: String,
source: Error,
},
SaveClusterInfo {
location: Location,
source: Error,
},
InvalidClusterInfoFormat {
location: Location,
source: Error,
},
InvalidDatanodeStatFormat {
location: Location,
source: Error,
},
InvalidNodeInfoFormat {
location: Location,
source: Error,
},
TomlFormat {
location: Location,
source: Box<Error>,
},
PostgresExecution {
error: Error,
sql: String,
location: Location,
},
GetPostgresClient {
location: Location,
error: PoolError<Error>,
},
SqlExecutionTimeout {
location: Location,
sql: String,
duration: Duration,
},
CreatePostgresPool {
error: CreatePoolError,
location: Location,
},
GetPostgresConnection {
reason: String,
location: Location,
},
MySqlExecution {
error: Error,
location: Location,
sql: String,
},
CreateMySqlPool {
error: Error,
location: Location,
},
AcquireMySqlClient {
error: Error,
location: Location,
},
HandlerNotFound {
name: String,
location: Location,
},
FlowStateHandler {
location: Location,
source: Error,
},
BuildWalProvider {
location: Location,
source: Error,
},
BuildKafkaClient {
location: Location,
error: Error,
},
BuildPartitionClient {
topic: String,
partition: i32,
location: Location,
error: Error,
},
DeleteRecords {
location: Location,
error: Error,
topic: String,
partition: i32,
offset: u64,
},
GetOffset {
topic: String,
location: Location,
error: Error,
},
UpdateTopicNameValue {
topic: String,
location: Location,
source: Error,
},
BuildTlsOptions {
location: Location,
source: Error,
},
RepartitionSourceRegionMissing {
group_id: Uuid,
region_id: RegionId,
location: Location,
},
RepartitionTargetRegionMissing {
group_id: Uuid,
region_id: RegionId,
location: Location,
},
SerializePartitionExpr {
source: Error,
location: Location,
},
DeserializePartitionExpr {
source: Error,
location: Location,
},
EmptyPartitionExpr {
location: Location,
},
PartitionExprMismatch {
region_id: RegionId,
expected: String,
actual: String,
location: Location,
},
AllocateRegions {
location: Location,
table_id: TableId,
source: Error,
},
DeallocateRegions {
location: Location,
table_id: TableId,
source: Error,
},
BuildCreateRequest {
location: Location,
table_id: TableId,
source: Error,
},
AllocateRegionRoutes {
location: Location,
table_id: TableId,
source: Error,
},
AllocateWalOptions {
location: Location,
table_id: TableId,
source: Error,
},
}Variants§
ChooseItems
ExceededDeadline
ListActiveFrontends
ListActiveDatanodes
ListActiveFlownodes
NoAvailableFrontend
Fields
§
location: LocationMigrationRunning
RegionMigrated
MigrationAbort
RegionOperatingRace
InitDdlManager
InitReconciliationManager
InitMetadata
NextSequence
SetNextSequence
PeekSequence
StartTelemetryTask
SubmitDdlTask
SubmitReconcileProcedure
InvalidateTableCache
ListCatalogs
ListSchemas
ListTables
Join
NoEnoughAvailableNode
SendShutdownSignal
ShutdownServer
EmptyKey
Fields
§
location: LocationEtcdFailed
ConnectEtcd
FileIo
TcpBind
StartGrpc
StartHttp
ParseAddr
InvalidLeaseKey
InvalidStatKey
InvalidInactiveRegionKey
LeaseKeyFromUtf8
LeaseValueFromUtf8
InvalidRegionKeyFromUtf8
SerializeToJson
DeserializeFromJson
SerializeConfig
ParseNum
ParseBool
DowngradeLeader
LeaderPeerChanged
InvalidArguments
ManualGcRejectedByMaintenanceMode
Fields
§
location: LocationParseMySqlUrl
DecodeSqlValue
TableRouteNotFound
RegionRouteNotFound
TableInfoNotFound
DatanodeTableNotFound
NoLeader
Fields
§
location: LocationLeaderLeaseExpired
Fields
§
location: LocationLeaderLeaseChanged
Fields
§
location: LocationTableNotFound
UnsupportedSelectorType
Unexpected
CreateChannel
BatchGet
Range
ResponseHeaderNotFound
Fields
§
location: LocationIsNotLeader
InvalidHttpBody
ExceededRetryLimit
InvalidUtf8Value
MissingRequiredParameter
StartProcedureManager
StopProcedureManager
WaitProcedure
QueryProcedure
ProcedureNotFound
SubmitProcedure
PruneTaskAlreadyRunning
SchemaAlreadyExists
TableAlreadyExists
PusherNotFound
PushMessage
MailboxClosed
MailboxTimeout
MailboxReceiver
MailboxChannelClosed
MissingRequestHeader
Fields
§
location: LocationRegisterProcedureLoader
UnexpectedInstructionReply
RetryLater
RetryLaterWithSource
ConvertProtoData
Other
TableMetadataManager
RuntimeSwitchManager
KvBackend
PublishMessage
TooManyPartitions
Fields
§
location: LocationRepartitionCreateSubtasks
RepartitionGcRequirement
InspectRepartitionProcedures
RepartitionGcRequired
Fields
§
location: LocationRepartitionSourceExprMismatch
RepartitionSubprocedureStateReceiver
Unsupported
UnexpectedLogicalRouteTable
SaveClusterInfo
InvalidClusterInfoFormat
InvalidDatanodeStatFormat
InvalidNodeInfoFormat
TomlFormat
PostgresExecution
GetPostgresClient
SqlExecutionTimeout
CreatePostgresPool
GetPostgresConnection
MySqlExecution
CreateMySqlPool
AcquireMySqlClient
HandlerNotFound
FlowStateHandler
BuildWalProvider
BuildKafkaClient
BuildPartitionClient
DeleteRecords
GetOffset
UpdateTopicNameValue
BuildTlsOptions
RepartitionSourceRegionMissing
RepartitionTargetRegionMissing
SerializePartitionExpr
DeserializePartitionExpr
EmptyPartitionExpr
Fields
§
location: LocationPartitionExprMismatch
AllocateRegions
DeallocateRegions
BuildCreateRequest
AllocateRegionRoutes
AllocateWalOptions
Implementations§
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.
Source§fn retry_hint(&self) -> RetryHint
fn retry_hint(&self) -> RetryHint
Returns the retry hint for this error instance. Read more
§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Returns whether this error instance is marked retryable. Read more
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 IntoError<Error> for ChooseItemsSnafu
impl IntoError<Error> for ChooseItemsSnafu
Source§impl<__T0> IntoError<Error> for ExceededDeadlineSnafu<__T0>
impl<__T0> IntoError<Error> for ExceededDeadlineSnafu<__T0>
Source§impl IntoError<Error> for ListActiveFrontendsSnafu
impl IntoError<Error> for ListActiveFrontendsSnafu
Source§impl IntoError<Error> for ListActiveDatanodesSnafu
impl IntoError<Error> for ListActiveDatanodesSnafu
Source§impl IntoError<Error> for ListActiveFlownodesSnafu
impl IntoError<Error> for ListActiveFlownodesSnafu
Source§impl IntoError<Error> for NoAvailableFrontendSnafu
impl IntoError<Error> for NoAvailableFrontendSnafu
Source§impl<__T0> IntoError<Error> for MigrationRunningSnafu<__T0>
impl<__T0> IntoError<Error> for MigrationRunningSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for RegionMigratedSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for RegionMigratedSnafu<__T0, __T1>
Source§impl<__T0> IntoError<Error> for MigrationAbortSnafu<__T0>
impl<__T0> IntoError<Error> for MigrationAbortSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for RegionOperatingRaceSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for RegionOperatingRaceSnafu<__T0, __T1>
Source§impl IntoError<Error> for InitDdlManagerSnafu
impl IntoError<Error> for InitDdlManagerSnafu
Source§impl IntoError<Error> for InitReconciliationManagerSnafu
impl IntoError<Error> for InitReconciliationManagerSnafu
Source§impl IntoError<Error> for InitMetadataSnafu
impl IntoError<Error> for InitMetadataSnafu
Source§impl IntoError<Error> for NextSequenceSnafu
impl IntoError<Error> for NextSequenceSnafu
Source§impl IntoError<Error> for SetNextSequenceSnafu
impl IntoError<Error> for SetNextSequenceSnafu
Source§impl IntoError<Error> for PeekSequenceSnafu
impl IntoError<Error> for PeekSequenceSnafu
Source§impl IntoError<Error> for StartTelemetryTaskSnafu
impl IntoError<Error> for StartTelemetryTaskSnafu
Source§impl IntoError<Error> for SubmitDdlTaskSnafu
impl IntoError<Error> for SubmitDdlTaskSnafu
Source§impl IntoError<Error> for SubmitReconcileProcedureSnafu
impl IntoError<Error> for SubmitReconcileProcedureSnafu
Source§impl IntoError<Error> for InvalidateTableCacheSnafu
impl IntoError<Error> for InvalidateTableCacheSnafu
Source§impl IntoError<Error> for ListCatalogsSnafu
impl IntoError<Error> for ListCatalogsSnafu
Source§impl<__T0> IntoError<Error> for ListSchemasSnafu<__T0>
impl<__T0> IntoError<Error> for ListSchemasSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for ListTablesSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for ListTablesSnafu<__T0, __T1>
Source§impl<__T0, __T1, __T2> IntoError<Error> for NoEnoughAvailableNodeSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> IntoError<Error> for NoEnoughAvailableNodeSnafu<__T0, __T1, __T2>
Source§impl IntoError<Error> for SendShutdownSignalSnafu
impl IntoError<Error> for SendShutdownSignalSnafu
Source§impl<__T0> IntoError<Error> for ShutdownServerSnafu<__T0>
impl<__T0> IntoError<Error> for ShutdownServerSnafu<__T0>
Source§impl IntoError<Error> for EmptyKeySnafu
impl IntoError<Error> for EmptyKeySnafu
Source§impl IntoError<Error> for EtcdFailedSnafu
impl IntoError<Error> for EtcdFailedSnafu
Source§impl IntoError<Error> for ConnectEtcdSnafu
impl IntoError<Error> for ConnectEtcdSnafu
Source§impl<__T0> IntoError<Error> for FileIoSnafu<__T0>
impl<__T0> IntoError<Error> for FileIoSnafu<__T0>
Source§impl<__T0> IntoError<Error> for TcpBindSnafu<__T0>
impl<__T0> IntoError<Error> for TcpBindSnafu<__T0>
Source§impl IntoError<Error> for StartGrpcSnafu
impl IntoError<Error> for StartGrpcSnafu
Source§impl IntoError<Error> for StartHttpSnafu
impl IntoError<Error> for StartHttpSnafu
Source§impl<__T0> IntoError<Error> for ParseAddrSnafu<__T0>
impl<__T0> IntoError<Error> for ParseAddrSnafu<__T0>
Source§type Source = AddrParseError
type Source = AddrParseError
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 InvalidLeaseKeySnafu<__T0>
impl<__T0> IntoError<Error> for InvalidLeaseKeySnafu<__T0>
Source§impl<__T0> IntoError<Error> for InvalidStatKeySnafu<__T0>
impl<__T0> IntoError<Error> for InvalidStatKeySnafu<__T0>
Source§impl<__T0> IntoError<Error> for InvalidInactiveRegionKeySnafu<__T0>
impl<__T0> IntoError<Error> for InvalidInactiveRegionKeySnafu<__T0>
Source§impl IntoError<Error> for LeaseKeyFromUtf8Snafu
impl IntoError<Error> for LeaseKeyFromUtf8Snafu
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 LeaseValueFromUtf8Snafu
impl IntoError<Error> for LeaseValueFromUtf8Snafu
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 InvalidRegionKeyFromUtf8Snafu
impl IntoError<Error> for InvalidRegionKeyFromUtf8Snafu
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<__T0> IntoError<Error> for SerializeToJsonSnafu<__T0>
impl<__T0> IntoError<Error> for SerializeToJsonSnafu<__T0>
Source§impl<__T0> IntoError<Error> for DeserializeFromJsonSnafu<__T0>
impl<__T0> IntoError<Error> for DeserializeFromJsonSnafu<__T0>
Source§impl IntoError<Error> for SerializeConfigSnafu
impl IntoError<Error> for SerializeConfigSnafu
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> IntoError<Error> for ParseBoolSnafu<__T0>
impl<__T0> IntoError<Error> for ParseBoolSnafu<__T0>
Source§type Source = ParseBoolError
type Source = ParseBoolError
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 DowngradeLeaderSnafu<__T0>
impl<__T0> IntoError<Error> for DowngradeLeaderSnafu<__T0>
Source§impl<__T0> IntoError<Error> for LeaderPeerChangedSnafu<__T0>
impl<__T0> IntoError<Error> for LeaderPeerChangedSnafu<__T0>
Source§impl<__T0> IntoError<Error> for InvalidArgumentsSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidArgumentsSnafu<__T0>
Source§impl IntoError<Error> for ManualGcRejectedByMaintenanceModeSnafu
impl IntoError<Error> for ManualGcRejectedByMaintenanceModeSnafu
Source§impl<__T0> IntoError<Error> for ParseMySqlUrlSnafu<__T0>
impl<__T0> IntoError<Error> for ParseMySqlUrlSnafu<__T0>
Source§impl IntoError<Error> for DecodeSqlValueSnafu
impl IntoError<Error> for DecodeSqlValueSnafu
Source§impl<__T0> IntoError<Error> for TableRouteNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for TableRouteNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for RegionRouteNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for RegionRouteNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for TableInfoNotFoundSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for DatanodeTableNotFoundSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for DatanodeTableNotFoundSnafu<__T0, __T1>
Source§impl IntoError<Error> for NoLeaderSnafu
impl IntoError<Error> for NoLeaderSnafu
Source§impl IntoError<Error> for LeaderLeaseExpiredSnafu
impl IntoError<Error> for LeaderLeaseExpiredSnafu
Source§impl IntoError<Error> for LeaderLeaseChangedSnafu
impl IntoError<Error> for LeaderLeaseChangedSnafu
Source§impl<__T0> IntoError<Error> for TableNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for TableNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for UnsupportedSelectorTypeSnafu<__T0>
impl<__T0> IntoError<Error> for UnsupportedSelectorTypeSnafu<__T0>
Source§impl<__T0> IntoError<Error> for UnexpectedSnafu<__T0>
impl<__T0> IntoError<Error> for UnexpectedSnafu<__T0>
Source§impl IntoError<Error> for CreateChannelSnafu
impl IntoError<Error> for CreateChannelSnafu
Source§impl IntoError<Error> for BatchGetSnafu
impl IntoError<Error> for BatchGetSnafu
Source§impl IntoError<Error> for RangeSnafu
impl IntoError<Error> for RangeSnafu
Source§impl IntoError<Error> for ResponseHeaderNotFoundSnafu
impl IntoError<Error> for ResponseHeaderNotFoundSnafu
Source§impl<__T0> IntoError<Error> for IsNotLeaderSnafu<__T0>
impl<__T0> IntoError<Error> for IsNotLeaderSnafu<__T0>
Source§impl IntoError<Error> for InvalidHttpBodySnafu
impl IntoError<Error> for InvalidHttpBodySnafu
Source§impl<__T0, __T1> IntoError<Error> for ExceededRetryLimitSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for ExceededRetryLimitSnafu<__T0, __T1>
Source§impl IntoError<Error> for InvalidUtf8ValueSnafu
impl IntoError<Error> for InvalidUtf8ValueSnafu
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<__T0> IntoError<Error> for MissingRequiredParameterSnafu<__T0>
impl<__T0> IntoError<Error> for MissingRequiredParameterSnafu<__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 IntoError<Error> for WaitProcedureSnafu
impl IntoError<Error> for WaitProcedureSnafu
Source§impl IntoError<Error> for QueryProcedureSnafu
impl IntoError<Error> for QueryProcedureSnafu
Source§impl<__T0> IntoError<Error> for ProcedureNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for ProcedureNotFoundSnafu<__T0>
Source§impl IntoError<Error> for SubmitProcedureSnafu
impl IntoError<Error> for SubmitProcedureSnafu
Source§impl<__T0> IntoError<Error> for PruneTaskAlreadyRunningSnafu<__T0>
impl<__T0> IntoError<Error> for PruneTaskAlreadyRunningSnafu<__T0>
Source§impl<__T0> IntoError<Error> for SchemaAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<Error> for SchemaAlreadyExistsSnafu<__T0>
Source§impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>
impl<__T0> IntoError<Error> for TableAlreadyExistsSnafu<__T0>
Source§impl<__T0> IntoError<Error> for PusherNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for PusherNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for PushMessageSnafu<__T0>
impl<__T0> IntoError<Error> for PushMessageSnafu<__T0>
Source§impl<__T0> IntoError<Error> for MailboxClosedSnafu<__T0>
impl<__T0> IntoError<Error> for MailboxClosedSnafu<__T0>
Source§impl<__T0> IntoError<Error> for MailboxTimeoutSnafu<__T0>
impl<__T0> IntoError<Error> for MailboxTimeoutSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for MailboxReceiverSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for MailboxReceiverSnafu<__T0, __T1>
Source§impl<__T0> IntoError<Error> for MailboxChannelClosedSnafu<__T0>
impl<__T0> IntoError<Error> for MailboxChannelClosedSnafu<__T0>
Source§impl IntoError<Error> for MissingRequestHeaderSnafu
impl IntoError<Error> for MissingRequestHeaderSnafu
Source§impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>
impl<__T0> IntoError<Error> for RegisterProcedureLoaderSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for UnexpectedInstructionReplySnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for UnexpectedInstructionReplySnafu<__T0, __T1>
Source§impl<__T0> IntoError<Error> for RetryLaterSnafu<__T0>
impl<__T0> IntoError<Error> for RetryLaterSnafu<__T0>
Source§impl<__T0> IntoError<Error> for RetryLaterWithSourceSnafu<__T0>
impl<__T0> IntoError<Error> for RetryLaterWithSourceSnafu<__T0>
Source§impl IntoError<Error> for ConvertProtoDataSnafu
impl IntoError<Error> for ConvertProtoDataSnafu
Source§impl IntoError<Error> for OtherSnafu
impl IntoError<Error> for OtherSnafu
Source§impl IntoError<Error> for TableMetadataManagerSnafu
impl IntoError<Error> for TableMetadataManagerSnafu
Source§impl IntoError<Error> for RuntimeSwitchManagerSnafu
impl IntoError<Error> for RuntimeSwitchManagerSnafu
Source§impl IntoError<Error> for KvBackendSnafu
impl IntoError<Error> for KvBackendSnafu
Source§impl IntoError<Error> for PublishMessageSnafu
impl IntoError<Error> for PublishMessageSnafu
Source§impl IntoError<Error> for TooManyPartitionsSnafu
impl IntoError<Error> for TooManyPartitionsSnafu
Source§impl IntoError<Error> for RepartitionCreateSubtasksSnafu
impl IntoError<Error> for RepartitionCreateSubtasksSnafu
Source§impl IntoError<Error> for RepartitionGcRequirementSnafu
impl IntoError<Error> for RepartitionGcRequirementSnafu
Source§impl IntoError<Error> for InspectRepartitionProceduresSnafu
impl IntoError<Error> for InspectRepartitionProceduresSnafu
Source§impl IntoError<Error> for RepartitionGcRequiredSnafu
impl IntoError<Error> for RepartitionGcRequiredSnafu
Source§impl<__T0> IntoError<Error> for RepartitionSourceExprMismatchSnafu<__T0>
impl<__T0> IntoError<Error> for RepartitionSourceExprMismatchSnafu<__T0>
Source§impl<__T0> IntoError<Error> for RepartitionSubprocedureStateReceiverSnafu<__T0>
impl<__T0> IntoError<Error> for RepartitionSubprocedureStateReceiverSnafu<__T0>
Source§impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>
impl<__T0> IntoError<Error> for UnsupportedSnafu<__T0>
Source§impl<__T0> IntoError<Error> for UnexpectedLogicalRouteTableSnafu<__T0>
impl<__T0> IntoError<Error> for UnexpectedLogicalRouteTableSnafu<__T0>
Source§impl IntoError<Error> for SaveClusterInfoSnafu
impl IntoError<Error> for SaveClusterInfoSnafu
Source§impl IntoError<Error> for InvalidClusterInfoFormatSnafu
impl IntoError<Error> for InvalidClusterInfoFormatSnafu
Source§impl IntoError<Error> for InvalidDatanodeStatFormatSnafu
impl IntoError<Error> for InvalidDatanodeStatFormatSnafu
Source§impl IntoError<Error> for InvalidNodeInfoFormatSnafu
impl IntoError<Error> for InvalidNodeInfoFormatSnafu
Source§impl IntoError<Error> for TomlFormatSnafu
impl IntoError<Error> for TomlFormatSnafu
Source§impl<__T0> IntoError<Error> for PostgresExecutionSnafu<__T0>
impl<__T0> IntoError<Error> for PostgresExecutionSnafu<__T0>
Source§impl IntoError<Error> for GetPostgresClientSnafu
impl IntoError<Error> for GetPostgresClientSnafu
Source§impl<__T0, __T1> IntoError<Error> for SqlExecutionTimeoutSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for SqlExecutionTimeoutSnafu<__T0, __T1>
Source§impl IntoError<Error> for CreatePostgresPoolSnafu
impl IntoError<Error> for CreatePostgresPoolSnafu
Source§impl<__T0> IntoError<Error> for GetPostgresConnectionSnafu<__T0>
impl<__T0> IntoError<Error> for GetPostgresConnectionSnafu<__T0>
Source§impl<__T0> IntoError<Error> for MySqlExecutionSnafu<__T0>
impl<__T0> IntoError<Error> for MySqlExecutionSnafu<__T0>
Source§impl IntoError<Error> for CreateMySqlPoolSnafu
impl IntoError<Error> for CreateMySqlPoolSnafu
Source§impl IntoError<Error> for AcquireMySqlClientSnafu
impl IntoError<Error> for AcquireMySqlClientSnafu
Source§impl<__T0> IntoError<Error> for HandlerNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for HandlerNotFoundSnafu<__T0>
Source§impl IntoError<Error> for FlowStateHandlerSnafu
impl IntoError<Error> for FlowStateHandlerSnafu
Source§impl IntoError<Error> for BuildWalProviderSnafu
impl IntoError<Error> for BuildWalProviderSnafu
Source§impl IntoError<Error> for BuildKafkaClientSnafu
impl IntoError<Error> for BuildKafkaClientSnafu
Source§impl<__T0, __T1> IntoError<Error> for BuildPartitionClientSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for BuildPartitionClientSnafu<__T0, __T1>
Source§impl<__T0, __T1, __T2> IntoError<Error> for DeleteRecordsSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> IntoError<Error> for DeleteRecordsSnafu<__T0, __T1, __T2>
Source§impl<__T0> IntoError<Error> for GetOffsetSnafu<__T0>
impl<__T0> IntoError<Error> for GetOffsetSnafu<__T0>
Source§impl<__T0> IntoError<Error> for UpdateTopicNameValueSnafu<__T0>
impl<__T0> IntoError<Error> for UpdateTopicNameValueSnafu<__T0>
Source§impl IntoError<Error> for BuildTlsOptionsSnafu
impl IntoError<Error> for BuildTlsOptionsSnafu
Source§impl<__T0, __T1> IntoError<Error> for RepartitionSourceRegionMissingSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for RepartitionSourceRegionMissingSnafu<__T0, __T1>
Source§impl<__T0, __T1> IntoError<Error> for RepartitionTargetRegionMissingSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for RepartitionTargetRegionMissingSnafu<__T0, __T1>
Source§impl IntoError<Error> for SerializePartitionExprSnafu
impl IntoError<Error> for SerializePartitionExprSnafu
Source§impl IntoError<Error> for DeserializePartitionExprSnafu
impl IntoError<Error> for DeserializePartitionExprSnafu
Source§impl IntoError<Error> for EmptyPartitionExprSnafu
impl IntoError<Error> for EmptyPartitionExprSnafu
Source§impl<__T0, __T1, __T2> IntoError<Error> for PartitionExprMismatchSnafu<__T0, __T1, __T2>
impl<__T0, __T1, __T2> IntoError<Error> for PartitionExprMismatchSnafu<__T0, __T1, __T2>
Source§impl<__T0> IntoError<Error> for AllocateRegionsSnafu<__T0>
impl<__T0> IntoError<Error> for AllocateRegionsSnafu<__T0>
Source§impl<__T0> IntoError<Error> for DeallocateRegionsSnafu<__T0>
impl<__T0> IntoError<Error> for DeallocateRegionsSnafu<__T0>
Source§impl<__T0> IntoError<Error> for BuildCreateRequestSnafu<__T0>
impl<__T0> IntoError<Error> for BuildCreateRequestSnafu<__T0>
Source§impl<__T0> IntoError<Error> for AllocateRegionRoutesSnafu<__T0>
impl<__T0> IntoError<Error> for AllocateRegionRoutesSnafu<__T0>
Source§impl<__T0> IntoError<Error> for AllocateWalOptionsSnafu<__T0>
impl<__T0> IntoError<Error> for AllocateWalOptionsSnafu<__T0>
Source§impl StackError for Error
impl StackError for Error
fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)
fn next(&self) -> Option<&dyn StackError>
Source§fn transparent(&self) -> bool
fn transparent(&self) -> bool
Indicates whether this error is “transparent”, that it delegates its “display” and “source”
to the underlying error. Could be useful when you are just wrapping some external error,
AND can not or would not provide meaningful contextual info. For example, the
DataFusionError.fn last(&self) -> &dyn StackErrorwhere
Self: Sized,
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
§impl<T> AnySync for T
impl<T> AnySync for T
§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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§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> Fruit for Twhere
T: Send + Downcast,
§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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
impl<T, U, I> LiftInto<U, I> for Twhere
U: LiftFrom<T, I>,
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSend for Twhere
T: Send,
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
§fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere
Self::Error: Into<Infallible>,
Performs an infallible conversion.
§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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<Source> Sculptor<HNil, HNil> for Source
impl<Source> Sculptor<HNil, HNil> for Source
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
Propagate a header from the request to the response. Read more
§fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
Add some shareable value to request extensions. Read more
§fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
Apply a transformation to the request body. Read more
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Compresses response bodies. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
§fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
§fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request. Read more
§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Append a header into the request. Read more
§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
Insert a header into the request, if the header is not already present. Read more
§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response. Read more
§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Append a header into the response. Read more
§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
Insert a header into the response, if the header is not already present. Read more
§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Add request id header and extension. Read more
§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Add request id header and extension, using
x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
Propgate request ids from requests to responses. Read more
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
Propgate request ids from requests to responses, using
x-request-id as the header name. Read more§fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
Catch panics and convert them into
500 Internal Server responses. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
Intercept requests with over-sized payloads and convert them into
413 Payload Too Large responses. Read more§fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
Remove trailing slashes from paths. Read more
§fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
Append trailing slash to paths. Read more
§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.