pub enum CircleInfo {
Active {
id: CircleId,
name: String,
role: CircleRole,
rotation_required: bool,
},
Conflicted {
id: CircleId,
branches: Vec<CircleControlCoord>,
},
Deleted {
id: CircleId,
},
}Expand description
One Circle as the local application sees it. A Circle with a single resolved
control is Active; a Circle whose control history forked into concurrent
valid successors is Conflicted and carries no name, role, or key until an
Owner resolves it. A conflicted Circle refuses authoring and package
publication, so it has no single resolved roster or metadata to report.
Variants§
Active
Fields
role: CircleRoleConflicted
Fields
branches: Vec<CircleControlCoord>Every retained concurrent control successor, in canonical order. The Owner resolves the conflict by naming this complete set and a chosen successor state.
Deleted
The Circle’s control history terminated in an Owner-signed deletion. Its rows and access are gone locally; only the authority spine remains.
Implementations§
Source§impl CircleInfo
impl CircleInfo
pub fn id(&self) -> CircleId
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The Circle’s display name, or None while its control is conflicted and
has no single resolved metadata.
Sourcepub fn rotation_required(&self) -> bool
pub fn rotation_required(&self) -> bool
Whether publishing new content is blocked because the resolved roster
names a removed Store member. Always false for a conflicted Circle,
which blocks all authoring until it is resolved.
Trait Implementations§
Source§impl Clone for CircleInfo
impl Clone for CircleInfo
Source§fn clone(&self) -> CircleInfo
fn clone(&self) -> CircleInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CircleInfo
impl Debug for CircleInfo
Source§impl PartialEq for CircleInfo
impl PartialEq for CircleInfo
impl Eq for CircleInfo
impl StructuralPartialEq for CircleInfo
Auto Trait Implementations§
impl Freeze for CircleInfo
impl RefUnwindSafe for CircleInfo
impl Send for CircleInfo
impl Sync for CircleInfo
impl Unpin for CircleInfo
impl UnsafeUnpin for CircleInfo
impl UnwindSafe for CircleInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
§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.