pub struct EvolutionNetworkNode {
pub store: Arc<dyn EvolutionStore>,
}Fields§
§store: Arc<dyn EvolutionStore>Implementations§
Source§impl EvolutionNetworkNode
impl EvolutionNetworkNode
pub fn new(store: Arc<dyn EvolutionStore>) -> Self
pub fn with_default_store() -> Self
pub fn accept_publish_request( &self, request: &PublishRequest, ) -> Result<ImportOutcome, EvoKernelError>
pub fn ensure_builtin_experience_assets( &self, sender_id: impl Into<String>, ) -> Result<ImportOutcome, EvoKernelError>
pub fn record_reported_experience( &self, sender_id: impl Into<String>, gene_id: impl Into<String>, signals: Vec<String>, strategy: Vec<String>, validation: Vec<String>, ) -> Result<ImportOutcome, EvoKernelError>
pub fn publish_local_assets( &self, sender_id: impl Into<String>, ) -> Result<EvolutionEnvelope, EvoKernelError>
pub fn fetch_assets( &self, responder_id: impl Into<String>, query: &FetchQuery, ) -> Result<FetchResponse, EvoKernelError>
pub fn revoke_assets( &self, notice: &RevokeNotice, ) -> Result<RevokeNotice, EvoKernelError>
pub fn metrics_snapshot( &self, ) -> Result<EvolutionMetricsSnapshot, EvoKernelError>
pub fn render_metrics_prometheus(&self) -> Result<String, EvoKernelError>
pub fn health_snapshot(&self) -> Result<EvolutionHealthSnapshot, EvoKernelError>
Trait Implementations§
Source§impl Clone for EvolutionNetworkNode
impl Clone for EvolutionNetworkNode
Source§fn clone(&self) -> EvolutionNetworkNode
fn clone(&self) -> EvolutionNetworkNode
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 EvolutionNetworkNode
impl !RefUnwindSafe for EvolutionNetworkNode
impl Send for EvolutionNetworkNode
impl Sync for EvolutionNetworkNode
impl Unpin for EvolutionNetworkNode
impl UnsafeUnpin for EvolutionNetworkNode
impl !UnwindSafe for EvolutionNetworkNode
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