pub struct AutopoiesisEngine { /* private fields */ }Implementations§
Source§impl AutopoiesisEngine
impl AutopoiesisEngine
pub fn new() -> Self
pub fn register_template( &self, name: &str, target_module: &str, template: &str, variables: Vec<String>, desc: &str, )
pub fn list_templates(&self) -> Vec<SourceTemplate>
Sourcepub fn generate_from_template(
&self,
template_name: &str,
var_values: &HashMap<String, String>,
) -> Option<String>
pub fn generate_from_template( &self, template_name: &str, var_values: &HashMap<String, String>, ) -> Option<String>
Template alapján kód generálás
Sourcepub fn propose_mutation(
&self,
name: &str,
mtype: MutationType,
target: &str,
code: &str,
reason: &str,
author: &str,
) -> u64
pub fn propose_mutation( &self, name: &str, mtype: MutationType, target: &str, code: &str, reason: &str, author: &str, ) -> u64
Új mutáció javaslata
Sourcepub fn apply_mutation(&self, id: u64) -> bool
pub fn apply_mutation(&self, id: u64) -> bool
Mutáció alkalmazása (verziózás + snapshot)
Sourcepub fn mutation_status(&self, id: u64) -> Option<MutationStatus>
pub fn mutation_status(&self, id: u64) -> Option<MutationStatus>
Mutáció státuszának ellenőrzése
pub fn list_mutations(&self, status: Option<&MutationStatus>) -> Vec<Mutation>
Sourcepub fn propose_fix(
&self,
goal_name: &str,
target_module: &str,
description: &str,
) -> u64
pub fn propose_fix( &self, goal_name: &str, target_module: &str, description: &str, ) -> u64
Planning által kért javítás: cél → mutáció
pub fn stats(&self) -> (usize, usize, usize, usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutopoiesisEngine
impl RefUnwindSafe for AutopoiesisEngine
impl Send for AutopoiesisEngine
impl Sync for AutopoiesisEngine
impl Unpin for AutopoiesisEngine
impl UnsafeUnpin for AutopoiesisEngine
impl UnwindSafe for AutopoiesisEngine
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more