pub struct Hyperfocus {
pub current_focus: Option<HyperfocusState>,
pub focus_history: Vec<HyperfocusState>,
pub attention_multiplier: f32,
pub resource_concentration: f32,
}Fields§
§current_focus: Option<HyperfocusState>§focus_history: Vec<HyperfocusState>§attention_multiplier: f32§resource_concentration: f32Implementations§
Source§impl Hyperfocus
impl Hyperfocus
pub fn new() -> Self
Sourcepub fn enter_hyperfocus(&mut self, target: &str, focus_type: &str) -> f32
pub fn enter_hyperfocus(&mut self, target: &str, focus_type: &str) -> f32
Enter hyperfocus state on a specific target
Sourcepub fn process_data(&mut self, blocks_count: u32, complexity: f32)
pub fn process_data(&mut self, blocks_count: u32, complexity: f32)
Process data during hyperfocus (deepen understanding)
Sourcepub fn exit_hyperfocus(&mut self) -> Option<HyperfocusState>
pub fn exit_hyperfocus(&mut self) -> Option<HyperfocusState>
Exit hyperfocus (save state and insights)
Sourcepub fn get_insights(&self) -> Vec<String>
pub fn get_insights(&self) -> Vec<String>
Get hyperfocus insights (what was learned)
Sourcepub fn is_productive(&self) -> bool
pub fn is_productive(&self) -> bool
Check if hyperfocus is still active and productive
Sourcepub fn get_resource_allocation(&self) -> (f32, f32)
pub fn get_resource_allocation(&self) -> (f32, f32)
Get resource allocation (how much goes to different tasks)
pub fn save(&self, dir: &Path) -> Result<(), String>
pub fn load(dir: &Path) -> Result<Self, String>
pub fn load_or_init(dir: &Path) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hyperfocus
impl RefUnwindSafe for Hyperfocus
impl Send for Hyperfocus
impl Sync for Hyperfocus
impl Unpin for Hyperfocus
impl UnsafeUnpin for Hyperfocus
impl UnwindSafe for Hyperfocus
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