Skip to main content

Crate sley_protocol

Crate sley_protocol 

Source

Structs§

DumbHttpPackRecord
DumbHttpRefRecord
FetchHeadRecord
FetchRefUpdate
PacketTraceIdentityGuard
Restores a packet-trace identity installed by scoped_packet_trace_identity when dropped.
PktLine
PromisorRemoteAdvertisement
One remote described by the protocol-v2 promisor-remote capability.
ProtocolErrorLine
ProtocolV2CommandOptions
ProtocolV2CommandRequest
ProtocolV2FetchFeatures
ProtocolV2FetchNegotiationResponse
The acknowledgment phase of a multi-round protocol-v2 fetch.
ProtocolV2FetchPackfileUri
ProtocolV2FetchRequest
ProtocolV2FetchResponseHeader
ProtocolV2FetchSidebandAllResponse
ProtocolV2FetchWantedRef
ProtocolV2LsRefsFeatures
ProtocolV2LsRefsRef
ProtocolV2LsRefsRequest
ProtocolV2ObjectInfoRecord
ProtocolV2ObjectInfoRequest
ProtocolV2ObjectInfoResponse
PushSourceRef
ReceivePackCommand
ReceivePackCommandStatusV2Options
ReceivePackFeatures
ReceivePackPushRequest
ReceivePackPushRequestHeader
ReceivePackPushRequestOptions
ReceivePackReportStatus
ReceivePackReportStatusV2
ReceivePackRequest
RefAdvertisement
RefAdvertisementSet
RefSpec
SideBandDemux
SideBandPacket
TransportHandshake
UploadArchiveRequest
UploadPackFeatures
UploadPackNegotiationRequest
UploadPackPackfileResponse
UploadPackRawPackfileResponse
UploadPackRawPackfileResponseHeader
UploadPackRequest

Enums§

GitService
PktLineFrame
ProtocolV2Command
ProtocolV2FetchAcknowledgment
ProtocolV2FetchResponseSection
ProtocolV2FetchShallowInfo
ProtocolV2LsRefsRecord
ProtocolV2Request
ProtocolV2SessionRequest
ProtocolVersion
ReceivePackCommandStatus
ReceivePackCommandStatusV2
ReceivePackUnpackStatus
SideBandChannel
UploadArchiveResponse
UploadPackAckStatus
UploadPackAcknowledgment

Constants§

PKT_LINE_MAX_LEN
PKT_LINE_MAX_PAYLOAD_LEN

Functions§

apply_receive_pack_push_request
build_receive_pack_push_request
build_receive_pack_push_request_header
build_upload_pack_raw_packfile_response
classify_protocol_v2_command_request
classify_protocol_v2_request
demux_protocol_v2_fetch_packfile
demux_sideband_packets
demux_sideband_stream
demux_upload_archive_response
demux_upload_pack_packfile_response
dumb_http_alternates_path
dumb_http_info_refs_path
dumb_http_loose_object_path
dumb_http_pack_file_path
dumb_http_pack_index_path
dumb_http_packs_path
encode_capabilities
encode_dumb_http_alternates
encode_dumb_http_info_refs
encode_dumb_http_packs
encode_error_line
encode_fetch_head
encode_promisor_remote_advertisement
Encode the server capability value, preserving remote order and the mandatory name,url field order.
encode_promisor_remote_reply
Encode the client reply value from accepted remote names.
encode_protocol_v2_advertisement
encode_protocol_v2_command_options
encode_protocol_v2_command_request
encode_protocol_v2_fetch_capability
encode_protocol_v2_fetch_response
encode_protocol_v2_fetch_sideband_all_response
encode_protocol_v2_ls_refs_capability
encode_protocol_v2_ls_refs_response
encode_protocol_v2_object_info_response
encode_protocol_v2_request
encode_receive_pack_features
encode_receive_pack_push_options
encode_receive_pack_push_request
encode_receive_pack_report_status
encode_receive_pack_report_status_v2
encode_receive_pack_request
encode_ref_advertisement
encode_ref_advertisement_set
encode_ref_advertisements
encode_refspec
encode_sideband_packet
encode_sideband_packets
encode_sideband_stream
encode_upload_archive_request
encode_upload_archive_response
encode_upload_pack_acknowledgment
encode_upload_pack_features
encode_upload_pack_negotiation_request
encode_upload_pack_packfile_response
encode_upload_pack_raw_packfile_response
encode_upload_pack_request
encode_upload_pack_shallow_update
exchange_protocol_v2_fetch
exchange_protocol_v2_ls_refs
exchange_protocol_v2_object_info
fetch_head_ref_description
fetch_head_remote_description
fetch_ref_updates_to_fetch_head
parse_and_demux_sideband_packets
parse_capabilities
parse_dumb_http_alternates
parse_dumb_http_info_refs
parse_dumb_http_packs
parse_error_frame
parse_error_line
parse_fetch_head
parse_git_service
parse_pkt_line_stream
parse_promisor_remote_advertisement
Parse a server promisor-remote=<value> capability. Unknown optional fields are ignored for forward compatibility; duplicate known fields are rejected.
parse_promisor_remote_reply
parse_protocol_v2_advertisement
parse_protocol_v2_command_options
parse_protocol_v2_command_request
parse_protocol_v2_fetch_features
parse_protocol_v2_fetch_response
parse_protocol_v2_fetch_sideband_all_response
parse_protocol_v2_ls_refs_features
parse_protocol_v2_ls_refs_response
parse_protocol_v2_ls_refs_response_as_ref_advertisement_set
Parse a protocol v2 ls-refs response and bridge it into the shared RefAdvertisementSet type. Convenience wrapper combining parse_protocol_v2_ls_refs_response and protocol_v2_ls_refs_records_to_ref_advertisement_set.
parse_protocol_v2_object_info_response
parse_protocol_v2_request
parse_receive_pack_features
parse_receive_pack_push_options
parse_receive_pack_push_request
parse_receive_pack_report_status
parse_receive_pack_report_status_v2
parse_receive_pack_request
parse_ref_advertisement
parse_ref_advertisement_set
parse_ref_advertisements
parse_refspec
parse_sideband_packet
parse_sideband_packets
parse_sideband_stream
parse_smart_http_advertisement_content_type
parse_smart_http_rpc_request_content_type
parse_smart_http_rpc_result_content_type
parse_upload_archive_request
parse_upload_archive_response
parse_upload_pack_acknowledgment
parse_upload_pack_features
parse_upload_pack_negotiation_request
parse_upload_pack_packfile_response
parse_upload_pack_raw_packfile_response
parse_upload_pack_request
parse_upload_pack_shallow_info_and_raw_packfile_response
Parse a raw upload-pack response that begins with a shallow-info section, i.e. the response to a deepen request.
parse_upload_pack_shallow_info_section
Parse the smart-HTTP/SSH v0 shallow-info section that precedes the packfile when the upload-pack request carried shallow/deepen/deepen-since/ deepen-not arguments.
parse_upload_pack_shallow_update
plan_fetch_ref_updates
plan_push_commands
protocol_v2_ls_refs_records_to_ref_advertisement_set
Bridge a parsed protocol v2 ls-refs response into the shared RefAdvertisementSet/RefAdvertisement types used by the v0/v1 codecs, so callers can drive v2 clone/fetch through the same ref-advertisement machinery.
protocol_v2_object_format
read_and_demux_sideband_stream
read_dumb_http_alternates
read_dumb_http_info_refs
read_dumb_http_packs
read_error_line
read_fetch_head
read_pkt_line_frame
read_pkt_line_frames
read_pkt_line_frames_until_flush
read_pkt_line_frames_until_response_end
read_protocol_v2_advertisement
read_protocol_v2_command_request
read_protocol_v2_fetch_negotiation_response
Read and validate the acknowledgment-only prefix of a multi-round fetch.
read_protocol_v2_fetch_request
read_protocol_v2_fetch_response
read_protocol_v2_fetch_response_header
read_protocol_v2_fetch_response_until_response_end
read_protocol_v2_fetch_sideband_all_response
read_protocol_v2_fetch_sideband_all_response_until_response_end
read_protocol_v2_ls_refs_request
read_protocol_v2_ls_refs_response
read_protocol_v2_ls_refs_response_as_ref_advertisement_set
Read a protocol v2 ls-refs response from reader and bridge it into the shared RefAdvertisementSet type.
read_protocol_v2_ls_refs_response_until_response_end
read_protocol_v2_object_info_request
read_protocol_v2_object_info_response
read_protocol_v2_request
read_protocol_v2_session_request
read_protocol_v2_stateless_rpc_payload_frames
Read the payload section of a stateless smart-HTTP v2 RPC response, skipping a leading capability advertisement when the server includes one before the command result.
read_receive_pack_push_options
read_receive_pack_push_request
read_receive_pack_push_request_header
read_receive_pack_report_status
read_receive_pack_report_status_v2
read_receive_pack_request
read_ref_advertisement_set
read_ref_advertisements
read_sideband_stream
read_upload_archive_request
read_upload_archive_response
read_upload_pack_acknowledgment
read_upload_pack_negotiation_request
read_upload_pack_packfile_response
read_upload_pack_raw_packfile_response
read_upload_pack_raw_packfile_response_header
read_upload_pack_request
read_upload_pack_shallow_info_and_raw_packfile_response
Read a raw upload-pack response that begins with a shallow-info section from reader, returning the shallow/unshallow entries and the parsed acknowledgments + raw packfile.
read_upload_pack_shallow_info_and_raw_packfile_response_header
read_upload_pack_shallow_info_section
read_upload_pack_shallow_update
refname_matches
Whether abbrev (a possibly-abbreviated ref like three or refs/heads/main) matches the full ref full under git’s ref_rev_parse_rules expansion, the way refname_match/branch_merge_matches (remote.c) compare a configured branch.<name>.merge value against an advertised ref name.
refspec_map_source
refspec_matches_source
scoped_packet_trace_identity
Temporarily set the packet-trace identity for the current thread.
set_packet_trace_identity
Set the program identity used in subsequent packet traces (the CLI sets this from the running subcommand). Mirrors packet_trace_identity(prog).
smart_http_advertisement_content_type
smart_http_info_refs_path
smart_http_rpc_path
smart_http_rpc_request_content_type
smart_http_rpc_result_content_type
trace_packet_read_payload
trace_packet_write_payload
trace_protocol_v2_advertisement_read
Trace a previously discovered v2 advertisement as incoming packets at the current logical protocol consumer. Smart HTTP discovers capabilities in its remote-helper phase, then forwards that handshake to fetch; replaying the packet trace at that in-process boundary preserves Git’s observable fetch< version 2 trace without putting a second advertisement on the HTTP RPC wire.
validate_protocol_v2_command_request_capabilities
validate_protocol_v2_fetch_command_request
validate_protocol_v2_fetch_request_features
validate_protocol_v2_ls_refs_command_request
validate_protocol_v2_ls_refs_request_features
validate_protocol_v2_object_info_command_request
validate_receive_pack_push_request_features
validate_upload_pack_request_features
write_dumb_http_alternates
write_dumb_http_info_refs
write_dumb_http_packs
write_error_line
write_fetch_head
write_pkt_line_frame
write_pkt_line_frames
write_pkt_line_payload
write_protocol_v2_advertisement
write_protocol_v2_command_request
write_protocol_v2_fetch_request
write_protocol_v2_fetch_response
write_protocol_v2_fetch_response_with_response_end
write_protocol_v2_fetch_sideband_all_response
write_protocol_v2_fetch_sideband_all_response_with_response_end
write_protocol_v2_ls_refs_request
write_protocol_v2_ls_refs_response
write_protocol_v2_ls_refs_response_with_response_end
write_protocol_v2_object_info_request
write_protocol_v2_object_info_response
write_protocol_v2_request
write_receive_pack_push_options
write_receive_pack_push_request
write_receive_pack_push_request_header
write_receive_pack_report_status
write_receive_pack_report_status_v2
write_receive_pack_request
write_ref_advertisement_set
write_ref_advertisements
write_sideband_packet
write_sideband_stream
write_upload_archive_request
write_upload_archive_response
write_upload_pack_acknowledgment
write_upload_pack_negotiation_request
write_upload_pack_packfile_response
write_upload_pack_raw_packfile_response
write_upload_pack_request
write_upload_pack_shallow_update