Skip to main content

CliError

Enum CliError 

Source
pub enum CliError {
Show 78 variants ReadConfig { path: PathBuf, source: Error, }, UnknownExtension { path: PathBuf, }, ParseConfig { path: PathBuf, message: String, }, MissingEnvVar { var: String, location: String, }, ReadInterpolatedFile { path: PathBuf, source: Error, }, InterpolatedFileTooLarge { path: PathBuf, max_bytes: u64, }, UnknownInterpolationId { id: String, token: String, }, MissingRecordField { id: String, path: String, }, UnknownConnector { kind: &'static str, name: String, available: String, }, UnknownStateStore { name: String, available: String, }, UnknownTransform { name: String, available: String, }, InvalidTransform { name: String, message: String, }, InvalidConnectorConfig { kind: &'static str, name: String, message: String, }, ScaffoldExists { path: PathBuf, }, MissingEnvSelector { var: String, }, EnvFileNotFound { path: PathBuf, }, NoConfigOrFromEnv, EnvConflict { field: String, scalar_var: String, json_var: String, }, InvalidEnvJson { var: String, message: String, }, TransformIndexGap { missing: u32, }, ReservedRowId { id: String, }, DuplicateRowId { id: String, }, UnknownParent { id: String, parent: String, }, ParentCycle { ids: Vec<String>, }, UnknownDependency { id: String, depends_on: String, }, DependencyCycle { ids: Vec<String>, }, DuplicateStateKey { id: String, state_key: String, }, InvalidStateKey { id: String, state_key: String, reason: String, }, PipelineHadFailures { count: usize, }, MatrixAndNodesBothPresent, EdgeEndpointMissing { name: String, known: Vec<String>, }, InvalidTopology { message: String, }, TopologyHadFailures { count: usize, }, UnknownDlqSinkKind { kind: String, context: String, }, InvalidDlqBudget { field: &'static str, }, UnknownTemplate { kind: &'static str, name: String, row_id: String, known: Vec<String>, }, MissingTemplate { kind: &'static str, row_id: String, }, DuplicateTemplate { kind: &'static str, name: String, }, TransformsOnSink { name: String, }, InheritTransformsOnSink { name: String, }, InterpolationCycle { chain: Vec<String>, }, CompositionCycle { chain: Vec<String>, }, IncludeNotFound { path: PathBuf, referenced_by: PathBuf, }, CompositionDepthExceeded { max: usize, }, BadInclude { path: PathBuf, reason: String, }, UnknownProfile { name: String, known: Vec<String>, }, UnknownVarsRef { name: String, token: String, }, UnknownTemplateRef { token: String, reason: String, }, MissingParam { name: String, description: Option<String>, }, UnknownParam { name: String, known: Vec<String>, }, UnknownParamRef { name: String, token: String, }, UnknownPipelineTemplate { id: String, version: Option<u32>, }, UnknownAuthProvider { name: String, known: Vec<String>, }, AuthProviderBuild { name: String, message: String, }, NoMatchForSelector { flag: &'static str, token: String, available: Vec<String>, }, UnknownStatus { value: String, available: Vec<String>, }, UnknownTag { tag: String, available: Vec<String>, }, UnknownIncludeParents { value: String, }, SelectorsWithoutMatrix { flags: String, }, EmptyRunSet { rows: Vec<String>, }, RunSetMissingAncestors { pairs: Vec<String>, policy: &'static str, }, Config(String), Faucet(FaucetError), Io(Error), Observability(String), Internal(String), SecretBackendDisabled { scheme: String, }, SecretNotFound { scheme: String, reference: String, }, SecretFetchFailed { scheme: String, reference: String, source: Box<dyn Error + Send + Sync>, }, SecretAuthFailed { scheme: String, hint: String, }, SecretNotJson { scheme: String, reference: String, }, SecretFieldMissing { scheme: String, reference: String, field: String, available: Vec<String>, }, SecretsRequireAsyncLoad, DoctorFailed { failed: usize, }, TestsFailed { failed: usize, }, BackfillFailed { failed: usize, }, Serve(String), ScheduleOverlapForbidden,
}
Expand description

Top-level error variants for the faucet binary.

Variants§

§

ReadConfig

Failed to read a config file from disk.

Fields

§path: PathBuf
§source: Error
§

UnknownExtension

The config file extension is neither .yaml/.yml nor .json.

Fields

§path: PathBuf
§

ParseConfig

Failed to parse the raw config text after interpolation.

Fields

§path: PathBuf
§message: String
§

MissingEnvVar

An ${env:VAR} reference could not be resolved.

Fields

§location: String
§

ReadInterpolatedFile

A ${file:PATH} reference could not be read.

Fields

§path: PathBuf
§source: Error
§

InterpolatedFileTooLarge

Fields

§path: PathBuf
§max_bytes: u64
§

UnknownInterpolationId

A ${row_id.path} token referenced an unknown matrix row id at expand-time (or a typo’d load-time prefix that survived to record-time).

Fields

§token: String
§

MissingRecordField

A ${row_id.path} resolved at record-time, but the dotted path doesn’t match any field in the parent record.

Fields

§path: String
§

UnknownConnector

The named connector is unknown (or its feature flag is disabled in this build).

Fields

§kind: &'static str
§name: String
§available: String
§

UnknownStateStore

The state-store type referenced in the config is unknown or not compiled in.

Fields

§name: String
§available: String
§

UnknownTransform

A transform type referenced in the config is not recognised.

Fields

§name: String
§available: String
§

InvalidTransform

The transform config block could not be deserialized into the expected shape.

Fields

§name: String
§message: String
§

InvalidConnectorConfig

A connector config object failed to deserialize.

Fields

§kind: &'static str
§name: String
§message: String
§

ScaffoldExists

A scaffold target already exists.

Fields

§path: PathBuf
§

MissingEnvSelector

The CLI was invoked with --from-env but the required selector env var (FAUCET_SOURCE or FAUCET_SINK) is unset.

Fields

§

EnvFileNotFound

An explicit --env-file path does not exist on disk.

Fields

§path: PathBuf
§

NoConfigOrFromEnv

faucet run invoked with neither a config path nor --from-env, and auto-discovery found no faucet.{yaml,yml,json} in cwd.

§

EnvConflict

Both a scalar env var and its _JSON counterpart were set for the same field.

Fields

§field: String
§scalar_var: String
§json_var: String
§

InvalidEnvJson

A *_JSON env var did not parse as JSON.

Fields

§message: String
§

TransformIndexGap

FAUCET_TRANSFORM_<N> indices are not contiguous starting at 1.

Fields

§missing: u32
§

ReservedRowId

A matrix row id collides with a load-time interpolation prefix.

Fields

§

DuplicateRowId

Two matrix rows declared the same id.

Fields

§

UnknownParent

A row’s parent: field names a row that doesn’t exist.

Fields

§parent: String
§

ParentCycle

The parent chain contains a cycle.

Fields

§

UnknownDependency

A row’s depends_on: list names a row that doesn’t exist.

Fields

§depends_on: String
§

DependencyCycle

The combined parent: + depends_on: graph contains a cycle.

Fields

§

DuplicateStateKey

Two parent records of the same matrix row resolved to the same parent_key value, producing a colliding state-key suffix.

Fields

§state_key: String
§

InvalidStateKey

The state key derived from the pipeline name + row id (+ resolved parent-key value) is not a valid state-store key. Caught up front at unit construction rather than mid-run.

Fields

§state_key: String
§reason: String
§

PipelineHadFailures

One or more matrix invocations failed under on_error: continue.

Fields

§count: usize
§

MatrixAndNodesBothPresent

Both pipeline.nodes (topology mode) and matrix: are non-empty. They are mutually exclusive: topology mode replaces the matrix.

§

EdgeEndpointMissing

A topology edge references a node id that doesn’t exist in nodes:.

Fields

§name: String
§known: Vec<String>
§

InvalidTopology

A topology graph-structure violation (arity, fan-out, join edges, cycle, reachability) reported by the core validator.

Fields

§message: String
§

TopologyHadFailures

One or more topology sink nodes failed under on_error: continue.

Fields

§count: usize
§

UnknownDlqSinkKind

DLQ sink kind is not registered (not compiled in or feature disabled).

Fields

§kind: String
§context: String
§

InvalidDlqBudget

DLQ budget field is set to zero (which is invalid; omit to mean ‘unlimited’).

Fields

§field: &'static str
§

UnknownTemplate

A matrix row referenced a named template that doesn’t exist in pipeline.sources / pipeline.sinks (or the legacy default).

Fields

§kind: &'static str
§name: String
§row_id: String
§known: Vec<String>
§

MissingTemplate

A matrix row supplied no ref: and the legacy default template doesn’t exist either.

Fields

§kind: &'static str
§row_id: String
§

DuplicateTemplate

Both the legacy pipeline.source and pipeline.sources.default were declared (same for sinks). The default slot can only be defined once.

Fields

§kind: &'static str
§name: String
§

TransformsOnSink

A sink template carries a transforms: field, which only sources support.

Fields

§name: String
§

InheritTransformsOnSink

A sink template carries inherit_transforms:, which only sources support.

Fields

§name: String
§

InterpolationCycle

A cycle was detected resolving ${vars.X} / ${sources.X.PATH} / ${sinks.X.PATH} references at load time.

Fields

§chain: Vec<String>
§

CompositionCycle

A config-composition include/extends chain contains a cycle.

Fields

§chain: Vec<String>
§

IncludeNotFound

An extends/!include target file does not exist.

Fields

§path: PathBuf
§referenced_by: PathBuf
§

CompositionDepthExceeded

Composition nesting exceeded the safety cap (extends/!include loop guard).

Fields

§max: usize
§

BadInclude

An !include tag had a non-string payload, an unsupported tag, or its target failed structural checks.

Fields

§path: PathBuf
§reason: String
§

UnknownProfile

--profile NAME (or FAUCET_PROFILE) named a profile not declared under profiles:.

Fields

§name: String
§known: Vec<String>
§

UnknownVarsRef

A ${vars.X} token referenced an undefined var.

Fields

§name: String
§token: String
§

UnknownTemplateRef

A ${sources.X.PATH} or ${sinks.X.PATH} token referenced an undefined template, or a dotted path that doesn’t resolve inside it.

Fields

§token: String
§reason: String
§

MissingParam

A params: entry declared required: true and the caller supplied no value (#444).

Fields

§name: String
§description: Option<String>
§

UnknownParam

A supplied param is not declared in the config’s params: block (#444). Rejected rather than ignored so a typo can never silently no-op.

Fields

§name: String
§known: Vec<String>
§

UnknownParamRef

A ${param.X} token referenced a param the config does not declare (#444).

Fields

§name: String
§token: String
§

UnknownPipelineTemplate

A pipeline-template id / version was not found in the registry (#444). Distinct from CliError::UnknownTemplate, which is about a pipeline.sources / pipeline.sinks connector template.

Fields

§version: Option<u32>
§

UnknownAuthProvider

A connector’s auth: { ref } named a provider not declared in the top-level auth: catalog.

Fields

§name: String
§known: Vec<String>
§

AuthProviderBuild

A top-level auth: provider spec failed to build.

Fields

§name: String
§message: String
§

NoMatchForSelector

A --select/--only/--skip token matched no matrix row id (#370). Guards against typos silently producing a partial or empty run.

Fields

§flag: &'static str
§token: String
§available: Vec<String>
§

UnknownStatus

A --status <tier> value is not one of the readiness-ladder tiers (#371).

Fields

§value: String
§available: Vec<String>
§

UnknownTag

A --tag <t> value matches no row’s tags (#376). Typo protection.

Fields

§available: Vec<String>
§

UnknownIncludeParents

A --include-parents <policy> value is not off/eligible/all (#377).

Fields

§value: String
§

SelectorsWithoutMatrix

Matrix-only selectors were passed for a config with no matrix: (single anonymous invocation) — nothing to select among (#370/#376).

Fields

§flags: String
§

EmptyRunSet

The resolved run set is empty after status gating / tag narrowing / skip (#371). Not a silent no-op — names each row’s status and how to include.

Fields

§rows: Vec<String>
§

RunSetMissingAncestors

A run-set row structurally depends on an ancestor that is not in the run set, under the active include_parents policy (#377). Lists every offending dependent → ancestor (edge) pair.

Fields

§pairs: Vec<String>
§policy: &'static str
§

Config(String)

A config-level validation failure that isn’t covered by a more specific variant (e.g. an invalid quality: block, or a quality check that requires a DLQ when none is configured).

§

Faucet(FaucetError)

Pass-through for failures bubbling up from faucet-core or a connector.

§

Io(Error)

Pass-through I/O error.

§

Observability(String)

Observability stack (Prometheus / tracing) failed to install.

§

Internal(String)

An internal invariant was violated (a bug). Surfaced instead of silently producing a partial result.

§

SecretBackendDisabled

A secret-manager directive used a scheme whose backend feature was not compiled into this binary.

Fields

§scheme: String
§

SecretNotFound

The secrets manager has no secret at the given reference.

Fields

§scheme: String
§reference: String
§

SecretFetchFailed

The secret fetch failed (network / API error).

Fields

§scheme: String
§reference: String
§source: Box<dyn Error + Send + Sync>
§

SecretAuthFailed

No ambient credentials were available for the backend.

Fields

§scheme: String
§hint: String
§

SecretNotJson

A #field selector was used on a secret that is not JSON.

Fields

§scheme: String
§reference: String
§

SecretFieldMissing

A #field selector named a key absent from the secret JSON.

Fields

§scheme: String
§reference: String
§field: String
§available: Vec<String>
§

SecretsRequireAsyncLoad

A secret directive was found while loading via the synchronous path.

§

DoctorFailed

One or more faucet doctor preflight probes failed. The checklist is printed by the command; main maps this to an exit code equal to the failed-probe count (clamped to 255).

Fields

§failed: usize
§

TestsFailed

One or more faucet test cases failed. The report is printed by the command; main maps this to an exit code equal to the failed-case count (clamped to 255).

Fields

§failed: usize
§

BackfillFailed

One or more faucet backfill units failed. The per-unit report is printed by the command (progress is already durably recorded, so --resume retries only the failures); main maps this to an exit code equal to the failed-unit count (clamped to 255).

Fields

§failed: usize
§

Serve(String)

A faucet serve startup or runtime failure (bind, auth gate, etc.).

§

ScheduleOverlapForbidden

overlap_policy: forbid saw a tick fire while a run was still in flight.

Trait Implementations§

Source§

impl Debug for CliError

Source§

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

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

impl Display for CliError

Source§

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

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

impl Error for CliError

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 From<Error> for CliError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FaucetError> for CliError

Source§

fn from(source: FaucetError) -> Self

Converts to this type from the input type.
Source§

impl From<InstallError> for CliError

Source§

fn from(e: InstallError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

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<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>, U: Sized,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

impl<T> AsAny for T
where T: Any + Send + Sync,

Source§

fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)

Obtains a dyn Any reference to the object: Read more
Source§

fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Obtains an Arc<dyn Any> reference to the object: Read more
Source§

fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts the object to Box<dyn Any>: Read more
Source§

fn type_name(&self) -> &'static str

Convenient wrapper for std::any::type_name, since Any does not provide it and Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).
Source§

impl<T> AsAny for T
where T: Any,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Source§

fn type_name(&self) -> &'static str

Gets the type name of self
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> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> Downcast for T
where T: AsAny + ?Sized,

Source§

fn is<T>(&self) -> bool
where T: AsAny,

Returns true if the boxed type is the same as T. Read more
Source§

fn downcast_ref<T>(&self) -> Option<&T>
where T: AsAny,

Forward to the method defined on the type Any.
Source§

fn downcast_mut<T>(&mut self) -> Option<&mut T>
where T: AsAny,

Forward to the method defined on the type Any.
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<L> LayerExt<L> for L

Source§

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

impl<L> LayerExt<L> for L

Source§

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

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

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ServiceExt for T

Source§

fn decompression(self) -> Decompression<Self>
where Self: Sized,

Available on crate features decompression-br or decompression-deflate or decompression-gzip or decompression-zstd only.
Decompress response bodies. Read more
Source§

fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>
where Self: Sized,

Available on crate feature trace only.
High level tracing that classifies responses using HTTP status codes. Read more
Source§

fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>
where Self: Sized,

Available on crate feature trace only.
High level tracing that classifies responses using gRPC headers. Read more
Source§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Available on crate feature follow-redirect only.
Follow redirect resposes using the Standard policy. Read more
Source§

fn set_request_id<M>( self, header_name: HeaderName, make_request_id: M, ) -> SetRequestId<Self, M>
where Self: Sized, M: MakeRequestId,

Available on crate feature request-id only.
Add request id header and extension. Read more
Source§

fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>
where Self: Sized, M: MakeRequestId,

Available on crate feature request-id only.
Add request id header and extension, using x-request-id as the header name. Read more
Source§

fn propagate_request_id( self, header_name: HeaderName, ) -> PropagateRequestId<Self>
where Self: Sized,

Available on crate feature request-id only.
Propgate request ids from requests to responses. Read more
Source§

fn propagate_x_request_id(self) -> PropagateRequestId<Self>
where Self: Sized,

Available on crate feature request-id only.
Propgate request ids from requests to responses, using x-request-id as the header name. Read more
Source§

fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>
where Self: Sized,

Available on crate feature limit only.
Intercept requests with over-sized payloads and convert them into 413 Payload Too Large responses. Read more
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToCompactString for T
where T: Display,

Source§

impl<T> ToLine for T
where T: Display,

Source§

fn to_line(&self) -> Line<'_>

Converts the value to a Line.
Source§

impl<T> ToSpan for T
where T: Display,

Source§

fn to_span(&self) -> Span<'_>

Converts the value to a Span.
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> ToText for T
where T: Display,

Source§

fn to_text(&self) -> Text<'_>

Converts the value to a Text.
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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<KernelType, ArrowType> TryIntoArrow<ArrowType> for KernelType
where ArrowType: TryFromKernel<KernelType>,

Source§

fn try_into_arrow(self) -> Result<ArrowType, ArrowError>

Source§

impl<KernelType, ArrowType> TryIntoKernel<KernelType> for ArrowType
where KernelType: TryFromArrow<ArrowType>,

Source§

fn try_into_kernel(self) -> Result<KernelType, ArrowError>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ValidateIp for T
where T: ToString,

Source§

fn validate_ipv4(&self) -> bool

Validates whether the given string is an IP V4
Source§

fn validate_ipv6(&self) -> bool

Validates whether the given string is an IP V6
Source§

fn validate_ip(&self) -> bool

Validates whether the given string is an IP
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