pub struct Overlap {
pub peer: PeerId,
pub attached: bool,
pub intent: String,
pub paths: Vec<OverlapPath>,
pub checkout: Option<PeerCheckout>,
}Expand description
Two peers that claimed the same ground.
Reported when the second of them announces, so that a collision is known at the moment it is created rather than discovered afterwards in the history of a branch.
Fields§
§peer: PeerIdThe other peer.
attached: boolWhether that peer is still attached. An overlap with a departed peer is a weaker signal than one with a live session, and the reader is told which it is.
intent: StringWhat it said it was doing.
paths: Vec<OverlapPath>The claims that meet: one line per pair, yours and theirs.
checkout: Option<PeerCheckout>Which checkout the other peer is attached to, when the reader knew.
The overlap that matters most is the one nobody could see before: two workers in
two worktrees of one repository, each reading a board that held only itself, both
claiming apps/majordomus-cli/src. Naming the checkout is what turns “p1 is on
your ground” into something a reader can act on when p1 is not on this board.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Overlap
impl<'de> Deserialize<'de> for Overlap
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>,
impl Eq for Overlap
Source§impl JsonSchema for Overlap
impl JsonSchema for Overlap
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Overlap
Auto Trait Implementations§
impl Freeze for Overlap
impl RefUnwindSafe for Overlap
impl Send for Overlap
impl Sync for Overlap
impl Unpin for Overlap
impl UnsafeUnpin for Overlap
impl UnwindSafe for Overlap
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
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
key and return true if they are equal.