pub enum GossipMessage {
GenerationAnnouncement {
producer_id: String,
issuer_key_hash: Vec<u8>,
epoch: u64,
manifest_digest: [u8; 32],
bundle_url: Option<String>,
origin_node: String,
},
UrgentRevocation {
producer_id: String,
issuer_key_hash: Vec<u8>,
epoch: u64,
origin_node: String,
},
}Expand description
Gossip message payload carried as a foca custom broadcast.
These messages announce the existence of signed artifacts — they never carry certificate status themselves. A node acts on a gossip message only by fetching and validating a sealed bundle.
Variants§
GenerationAnnouncement
Fields
§
origin_node: StringName of the node that produced this announcement, so receivers can
attribute the epoch to a specific fleet member and compute
per-node staleness. Added after the initial wire format; #[serde(default)]
keeps it backward-compatible — messages from older nodes decode with an
empty origin (the JSON payload simply omits the field).
UrgentRevocation
Implementations§
Trait Implementations§
Source§impl Clone for GossipMessage
impl Clone for GossipMessage
Source§fn clone(&self) -> GossipMessage
fn clone(&self) -> GossipMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GossipMessage
impl Debug for GossipMessage
Source§impl<'de> Deserialize<'de> for GossipMessage
impl<'de> Deserialize<'de> for GossipMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GossipMessage
impl Display for GossipMessage
Source§impl PartialEq for GossipMessage
impl PartialEq for GossipMessage
Source§fn eq(&self, other: &GossipMessage) -> bool
fn eq(&self, other: &GossipMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GossipMessage
impl Serialize for GossipMessage
impl Eq for GossipMessage
impl StructuralPartialEq for GossipMessage
Auto Trait Implementations§
impl Freeze for GossipMessage
impl RefUnwindSafe for GossipMessage
impl Send for GossipMessage
impl Sync for GossipMessage
impl Unpin for GossipMessage
impl UnsafeUnpin for GossipMessage
impl UnwindSafe for GossipMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more