pub struct Announced {
pub peer: Peer,
pub overlaps: Vec<Overlap>,
pub released: Vec<String>,
}Expand description
What announce answers: the peer as recorded, and who else is on that ground.
Fields§
§peer: PeerThe peer, with the announcement it just made.
overlaps: Vec<Overlap>Every other peer whose claimed scope meets this one. Empty is the ordinary case.
released: Vec<String>Paths the claim this one replaced had, and this one does not.
Announcing under a name a peer already used replaces that claim, which is what an update is. When the replacement is narrower, the peer has just stopped claiming ground it held a moment ago, and the other peers stop being warned off it. That is occasionally what was meant and is otherwise a mistake nobody would ever see, so it is said here, at the moment it happens, rather than left to be discovered in a collision later. Empty is the ordinary case.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Announced
impl<'de> Deserialize<'de> for Announced
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 Eq for Announced
Source§impl JsonSchema for Announced
impl JsonSchema for Announced
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Announced
Auto Trait Implementations§
impl Freeze for Announced
impl RefUnwindSafe for Announced
impl Send for Announced
impl Sync for Announced
impl Unpin for Announced
impl UnsafeUnpin for Announced
impl UnwindSafe for Announced
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.