pub struct CircleRosterChain { /* private fields */ }Implementations§
Source§impl CircleRosterChain
impl CircleRosterChain
pub fn from_entries( entries: Vec<CircleRosterEntry>, ) -> Result<Self, CircleRosterError>
pub fn from_entries_with_heads( entries: Vec<CircleRosterEntry>, heads: Vec<ExactCircleRosterHead>, ) -> Result<Self, CircleRosterError>
pub fn with_exact_successor( &self, entry: CircleRosterEntry, head: ExactCircleRosterHead, ) -> Result<Self, CircleRosterError>
pub fn resolved_with_successor( &self, entry: CircleRosterEntry, ) -> Result<ResolvedCircleRoster, CircleRosterError>
pub fn validate_exact_heads( entries: &[CircleRosterEntry], heads: &[ExactCircleRosterHead], ) -> Result<Vec<CircleRosterHeadRef>, CircleRosterError>
pub fn entries(&self) -> &[CircleRosterEntry] ⓘ
pub fn status(&self) -> &CircleRosterStatus
pub fn resolution_refs(&self) -> &[CircleRosterConflictResolutionRef]
pub fn resolution_checkpoint_covers(&self, coord: &CircleRosterCoord) -> bool
pub fn replay_resolved_history_to_heads( &self, entries: Vec<CircleRosterEntry>, heads: Vec<CircleRosterHeadRef>, ) -> Result<Self, CircleRosterError>
pub fn replay_merged_resolved_histories_to_heads( chains: &[&CircleRosterChain], entries: Vec<CircleRosterEntry>, heads: Vec<CircleRosterHeadRef>, ) -> Result<Self, CircleRosterError>
pub fn checkpoint_current_resolved_state( &mut self, ) -> Result<(), CircleRosterError>
pub fn resolved(&self) -> ResolvedCircleRoster
pub fn try_resolved(&self) -> Result<ResolvedCircleRoster, CircleRosterError>
pub fn apply_resolutions( &mut self, resolutions: &[CircleRosterConflictResolution], ) -> Result<(), CircleRosterError>
pub fn effective_frontier(&self) -> Vec<CircleRosterCoord>
pub fn signed_set_member( &self, device_id: &str, stream_id: AuthorStreamId, member_pubkey: String, role: CircleRole, signer: &dyn IdentityKeyAuthority, ) -> Result<CircleRosterEntry, CircleRosterError>
pub fn signed_remove_member( &self, device_id: &str, stream_id: AuthorStreamId, member_pubkey: String, signer: &dyn IdentityKeyAuthority, ) -> Result<CircleRosterEntry, CircleRosterError>
pub fn signed_cycle_resolution( &self, resolver_branch_heads: Vec<CircleRosterHeadRef>, signer: &dyn IdentityKeyAuthority, ) -> Result<CircleRosterConflictResolution, CircleRosterError>
Trait Implementations§
Source§impl Clone for CircleRosterChain
impl Clone for CircleRosterChain
Source§fn clone(&self) -> CircleRosterChain
fn clone(&self) -> CircleRosterChain
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 moreAuto Trait Implementations§
impl Freeze for CircleRosterChain
impl RefUnwindSafe for CircleRosterChain
impl Send for CircleRosterChain
impl Sync for CircleRosterChain
impl Unpin for CircleRosterChain
impl UnsafeUnpin for CircleRosterChain
impl UnwindSafe for CircleRosterChain
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