pub struct Announce {
pub host: NodeId,
pub content: HashAndFormat,
pub kind: AnnounceKind,
pub timestamp: AbsoluteTime,
}
Expand description
Announce that a peer claims to have some blobs or set of blobs.
A peer can announce having some data, but it should also be able to announce that another peer has the data. This is why the peer is included.
Fields§
§host: NodeId
The peer that supposedly has the data.
content: HashAndFormat
The content that the peer claims to have.
kind: AnnounceKind
The kind of the announcement.
timestamp: AbsoluteTime
The timestamp of the announce.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Announce
impl<'de> Deserialize<'de> for Announce
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
impl Copy for Announce
Auto Trait Implementations§
impl Freeze for Announce
impl RefUnwindSafe for Announce
impl Send for Announce
impl Sync for Announce
impl Unpin for Announce
impl UnwindSafe for Announce
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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