Skip to main content

Crate wire

Crate wire 

Source
Expand description

Shared protocol/auth transport types. Live authorization scope rules are owned by weft-server/src/access/scope.rs.

Structs§

AuthToken
CompletedProviderPack
A completely covered and validated provider pack ready for atomic install.
Error
GitPackChunkState
GrowingPackChunkReader
HarnessIdentity
HostedGrantInfo
HostedNamespaceInfo
HostedRepositoryInfo
HostedSpoolInfo
NativePackBundle
NativePackFileBundle
NativePackStreamingWriter
ObjectAvailabilityPlan
ObjectData
ObjectInfo
ObjectRequest
PackChunkSpool
PackChunkState
PackFileChunkReader
PlannedObject
ProgressCheckpoint
ProviderPackBundle
ProviderPackExtent
ProviderPackIndexEntry
ProviderPackManifest
ProviderPackSpool
A pre-sized provider pack spool that owns all partial transfer state.
ProviderPackWriter
A bounded-memory positional writer for one validated provider pack plan.
PullComplete
PushComplete
RefEntry
One advertised repository ref.
RefFilter
Filter applied when listing repository refs.
RefUpdated
RefsList
Published repository-ref listing response.
RemoteCursorFailure
RemoteDuration
RemoteTimestamp
RepositoryTransferPlan
ReusedNativePackStats
SemanticGraphQueryRequest
weft#451 Tier-2 request body. Hosted RPC names remain residual in weft.
SemanticGraphQueryResponse
weft#451 Tier-2 response body. index_present is false when the state has no attached semantic index; the query then returns empty collections and never computes one.
SemanticGraphRef
One persisted reference to a definition, reconstructed without parsing.
SessionDiffSummary
SessionReportEnvelope
StateClosureOptions
StateClosureTransferObjects
TranscriptAttachmentRef
TransferPartitions
TransferPlanStats
UsageTotals
WireKeyBinding
Transport form of a KeyBinding.
WireKeyBindingLiveness
Liveness portion of a signed key binding, explicit at the wire boundary.
WireKeyBindingRegistry
Versioned set of key bindings carried as one closure object.
WorktreeChangeBaseline

Enums§

AdvertisedRef
Typed view of an advertised ref. The synthetic arm never holds a ThreadName or MarkerName.
AdvertisedRefError
Why an advertised ref could not be consumed as its declared kind.
ErrorCode
GitLaneTransferIntent
HeadInfo
Repository HEAD shape returned alongside a ref listing.
HostedSpoolKind
ObjectId
ObjectType
ObjectTypeBucket
ProtocolError
Error type for protocol operations.
RefKind
Type-distinct discriminator for an advertised ref.
RemoteCursorReason
RemoteFailureCode
Stable outcome vocabulary for a failed hosted call. This mirrors the governed API contract without depending on generated protobuf types.
RemoteFailureDetail
Machine-readable hosted failure details retained across the transport seam. Unknown details stay lossless so a newer server does not collapse them to prose when talking to an older client.
SemanticGraphQueryKind
Graph primitive selected by heddle semantic refs and the weft#451 wire.

Constants§

DEFAULT_PORT
Default port for Heddle protocol.
MAX_MESSAGE_SIZE
Maximum message size (64 MB).
MAX_PULL_FRAME_MESSAGE_SIZE
Inbound protobuf-frame decode limit for the pull stream.
MAX_RECEIVED_GIT_PACK_SIZE
Maximum hosted Git pack accepted by the Git-lane transfer primitive.
MAX_RECEIVED_PACK_INDEX_SIZE
Maximum hosted native-pack index accepted by the receive primitive.
MAX_RECEIVED_PACK_SIZE
Maximum hosted native-pack body accepted by the receive primitive.
MAX_RECEIVED_REDACTIONS_BLOB_SIZE
Maximum redaction sidecar blob accepted from the pull stream, per blob.
MAX_RECEIVED_STATE_VISIBILITY_BLOB_SIZE
Maximum state-visibility sidecar blob accepted from the pull stream, per state.
PROTOCOL_VERSION
Protocol version.

Functions§

admit_declared_received_len
Admit a declared receive length before any buffer is reserved or grown.
assemble_provider_pack
Assemble and verify one virtual native pack from provider extent bodies.
build_native_pack
check_received_transfer_blob_size
Reject a received per-object transfer sidecar blob whose length exceeds max_bytes, before it is handed to the repository accept path.
chunk_bounds
chunk_count
chunk_offset
decode_key_binding_registry
Decode a key-binding wire object and verify its advertised content address.
encode_key_binding_registry
Encode a validated registry as a typed, content-addressed wire object.
enumerate_state_closure
enumerate_state_closure_plan
enumerate_state_closure_plan_with_options
enumerate_state_closure_transfer_from_boundaries
Enumerate a transfer delta while treating boundary_states as complete server-held roots. Unlike StateClosureOptions::exclude_states, this does not expand each boundary’s tree/history to build a hash exclusion set: the walk stops as soon as it reaches the boundary state. Objects reused by the new tip may still be advertised, and the receiver’s have-set filters them. This keeps incremental push planning proportional to the new history.
enumerate_state_closure_transfer_with_options
enumerate_state_closure_with_options
has_object
install_received_pack
is_ancestor
is_native_packable_object_type
load_object_data
load_requested_object
missing_blobs_in_tree
native_pack_excluded_object_types
next_pack_chunk
plan_object_availability
receive_pack_chunk
reuse_native_pack_encoded_subset_in
Build a hosted transport pack by reusing non-delta encoded entries from an authoritative local pack. Ok(None) means the caller must use the normal object-loading writer.
store_received_object

Type Aliases§

Result