pub struct Executive { /* private fields */ }Implementations§
Source§impl Executive
impl Executive
pub fn new() -> Self
pub fn register_module( &self, id: &str, name: &str, priority: u8, energy_cost: f64, tags: Vec<String>, )
pub fn module_state(&self, id: &str) -> Option<ModuleState>
pub fn set_module_state(&self, id: &str, state: ModuleState) -> bool
pub fn list_modules(&self) -> Vec<CognitiveModule>
pub fn set_priority(&self, id: &str, priority: u8) -> bool
pub fn resources(&self) -> CognitiveResources
pub fn update_resources(&self, f: impl Fn(&mut CognitiveResources))
pub fn schedule(&self) -> ExecutionPlan
pub fn execute_next(&self) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executive
impl RefUnwindSafe for Executive
impl Send for Executive
impl Sync for Executive
impl Unpin for Executive
impl UnsafeUnpin for Executive
impl UnwindSafe for Executive
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