pub struct CognitiveModule {
pub id: String,
pub name: String,
pub priority: u8,
pub energy_cost: f64,
pub state: ModuleState,
pub last_run_ms: u64,
pub run_count: u64,
pub avg_duration_ms: f64,
pub tags: Vec<String>,
}Fields§
§id: String§name: String§priority: u8§energy_cost: f64§state: ModuleState§last_run_ms: u64§run_count: u64§avg_duration_ms: f64Trait Implementations§
Source§impl Clone for CognitiveModule
impl Clone for CognitiveModule
Auto Trait Implementations§
impl Freeze for CognitiveModule
impl RefUnwindSafe for CognitiveModule
impl Send for CognitiveModule
impl Sync for CognitiveModule
impl Unpin for CognitiveModule
impl UnsafeUnpin for CognitiveModule
impl UnwindSafe for CognitiveModule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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