pub struct CollectiveManager { /* private fields */ }Expand description
High-level manager for collective intelligence operations.
Coordinates pattern extraction, privacy filtering, delta creation, and registry communication. Supports both online and offline modes.
Implementations§
Source§impl CollectiveManager
impl CollectiveManager
Sourcepub fn mode(&self) -> &RegistryMode
pub fn mode(&self) -> &RegistryMode
Get the current operating mode.
Sourcepub fn is_offline(&self) -> bool
pub fn is_offline(&self) -> bool
Check if the manager is in offline mode.
Sourcepub fn extract_patterns(&self, graph: &CodeGraph) -> Vec<UsagePattern>
pub fn extract_patterns(&self, graph: &CodeGraph) -> Vec<UsagePattern>
Extract patterns from a code graph.
Sourcepub fn query_patterns(
&mut self,
language: &str,
category: &str,
) -> Vec<UsagePattern>
pub fn query_patterns( &mut self, language: &str, category: &str, ) -> Vec<UsagePattern>
Query the registry for patterns.
Sourcepub fn publish_delta(&mut self, delta: &CollectiveDelta) -> bool
pub fn publish_delta(&mut self, delta: &CollectiveDelta) -> bool
Publish a delta to the registry.
Sourcepub fn registry(&self) -> &RegistryClient
pub fn registry(&self) -> &RegistryClient
Access the registry client.
Sourcepub fn registry_mut(&mut self) -> &mut RegistryClient
pub fn registry_mut(&mut self) -> &mut RegistryClient
Access the registry client mutably.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollectiveManager
impl RefUnwindSafe for CollectiveManager
impl Send for CollectiveManager
impl Sync for CollectiveManager
impl Unpin for CollectiveManager
impl UnsafeUnpin for CollectiveManager
impl UnwindSafe for CollectiveManager
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