Skip to main content

Crate eggup_acquisition

Crate eggup_acquisition 

Source
Expand description

Transport-neutral acquisition seam and deterministic fixture transport.

An adapter receives an exact caller-selected URL, enforces caller-provided byte/time bounds, writes artifacts to a transaction-owned destination, and returns typed Success | NotFound | Failure without release or fallback policy. Downloaded bytes are data and are never executed.

Structs§

AcquisitionRequest
An exact acquisition request selected by caller policy.
ArtifactEvidence
Streamed artifact evidence.
CancelFlag
Cooperative cancellation flag checked during streaming.
ComposedTransport
Explicit caller-selected preferred/fallback composition over two transports.
FetchLimits
Caller-provided byte and time bounds for one fetch.
FixtureResponse
One deterministic fixture response.
FixtureTransport
Deterministic in-memory transport for correctness tests.
MetadataBytes
Bounded small-body metadata bytes.

Enums§

AcquisitionError
Hard acquisition failure. Never used for NotFound.
CompositionPolicy
Caller-selected fallback scope for a composed transport.
FetchOutcome
Typed success/absence outcome. Hard failures are Err(AcquisitionError).

Traits§

AcquisitionTransport
The minimal transport-neutral acquisition contract.

Functions§

redact_url
Redacts credential-bearing URL material for diagnostics.

Type Aliases§

SharedTransport
Shared ownership helper for tests that need a transport behind Arc.