pub struct FragmentIndexAnnouncement {
pub network_id: String,
pub chunk_id: String,
pub announced_at: u64,
pub pointers: Vec<FragmentPointer>,
}Expand description
Gossip announcement published after a PutFile distributes fragments.
Published on FragmentIndexAnnouncement::topic_name by the Bill node
that executed the distribution.
Fields§
§network_id: StringNetwork this chunk belongs to.
chunk_id: StringBLAKE3-derived chunk identifier (same as chunk_id in PutFile response).
announced_at: u64Unix timestamp (seconds) of this announcement.
pointers: Vec<FragmentPointer>One entry per distributed fragment: which Pouch holds it.
Implementations§
Source§impl FragmentIndexAnnouncement
impl FragmentIndexAnnouncement
Sourcepub fn topic_name(network_id: &str) -> String
pub fn topic_name(network_id: &str) -> String
Gossipsub topic name for the fragment index of network_id.
Format: billpouch/v1/{network_id}/index
Trait Implementations§
Source§impl Clone for FragmentIndexAnnouncement
impl Clone for FragmentIndexAnnouncement
Source§fn clone(&self) -> FragmentIndexAnnouncement
fn clone(&self) -> FragmentIndexAnnouncement
Returns a duplicate of the value. Read more
1.0.0 · 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 FragmentIndexAnnouncement
impl Debug for FragmentIndexAnnouncement
Source§impl<'de> Deserialize<'de> for FragmentIndexAnnouncement
impl<'de> Deserialize<'de> for FragmentIndexAnnouncement
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
Auto Trait Implementations§
impl Freeze for FragmentIndexAnnouncement
impl RefUnwindSafe for FragmentIndexAnnouncement
impl Send for FragmentIndexAnnouncement
impl Sync for FragmentIndexAnnouncement
impl Unpin for FragmentIndexAnnouncement
impl UnwindSafe for FragmentIndexAnnouncement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more