Skip to main content

Crate guts_p2p

Crate guts_p2p 

Source
Expand description

P2P networking layer for Guts decentralized code collaboration.

This crate provides the peer-to-peer networking infrastructure for replicating git repositories and collaboration data across multiple nodes.

Structs§

ObjectData
Response with object data.
RefUpdate
Reference update broadcast.
ReplicationProtocol
Repository replication protocol.
RepoAnnounce
Repository announcement message.
SerializableComment
Serializable version of a comment.
SerializableIssue
Serializable version of an issue for P2P transmission.
SerializableLabel
Serializable version of a label.
SerializablePullRequest
Serializable version of a pull request for P2P transmission.
SerializableReview
Serializable version of a review.
SyncRequest
Request to sync objects from a peer.

Enums§

CollaborationMessage
Collaboration message for P2P transmission.
CollaborationMessageType
Collaboration message type discriminator.
Message
Unified message enum.
MessageType
Message type discriminator.
P2PError
Errors that can occur in P2P operations.

Constants§

MAX_MESSAGE_SIZE
Maximum message size for replication (10 MB).
REPLICATION_CHANNEL
Channel ID for replication messages.

Traits§

ReplicationHandler
Callback trait for sending messages to peers.

Type Aliases§

Result
Result type for P2P operations.