pub struct LearningSession { /* private fields */ }Expand description
Thread-safe learning session.
Implementations§
Source§impl LearningSession
impl LearningSession
pub fn new() -> Self
pub fn start(&self, task_description: Option<String>) -> Result<(), String>
pub fn stop(&self) -> Result<Vec<LearnedEvent>, String>
pub fn push_event(&self, event: LearnedEvent)
pub fn status(&self) -> SessionStatus
pub fn event_count(&self) -> usize
pub fn elapsed_secs(&self) -> u64
pub fn task_description(&self) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LearningSession
impl RefUnwindSafe for LearningSession
impl Send for LearningSession
impl Sync for LearningSession
impl Unpin for LearningSession
impl UnsafeUnpin for LearningSession
impl UnwindSafe for LearningSession
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