CJ_Clippy 24fd2bd5b6 git subrepo clone https://github.com/greatest-ape/aquatic ./apps/aquatic
subrepo:
  subdir:   "apps/aquatic"
  merged:   "b139e39f"
upstream:
  origin:   "https://github.com/greatest-ape/aquatic"
  branch:   "master"
  commit:   "b139e39f"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2025-02-21 19:47:41 -08:00

23 lines
693 B
Rust

use serde::{Deserialize, Serialize};
use crate::common::*;
/// Message sent to peer when other peer wants to initiate a WebRTC connection
///
/// One is sent for each offer in an announce request
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct OfferOutMessage {
/// Always "announce"
pub action: AnnounceAction,
/// Peer id of peer sending offer
///
/// Note: if equal to client peer_id, reference client ignores offer
pub peer_id: PeerId,
/// Torrent info hash
pub info_hash: InfoHash,
/// Gets copied from AnnounceRequestOffer
pub offer: RtcOffer,
/// Gets copied from AnnounceRequestOffer
pub offer_id: OfferId,
}