pub struct SessionHistory;Implementations§
Source§impl SessionHistory
impl SessionHistory
pub fn history_dir() -> Result<PathBuf>
pub fn active_history_dir() -> Result<PathBuf>
pub fn archived_history_dir() -> Result<PathBuf>
pub fn load_session_history(session_id: &str) -> Result<SessionHistoryFile>
pub fn record_session_created(session: &Session) -> Result<()>
pub fn record_session_attached(session: &Session) -> Result<()>
pub fn record_session_detached(session: &Session) -> Result<()>
pub fn record_session_killed(session: &Session) -> Result<()>
pub fn record_session_crashed(session: &Session) -> Result<()>
pub fn record_session_renamed( session: &Session, old_name: Option<String>, new_name: String, ) -> Result<()>
pub fn load_all_history( include_archived: bool, limit: Option<usize>, ) -> Result<Vec<HistoryEntry>>
pub fn get_session_history(session_id: &str) -> Result<Vec<HistoryEntry>>
pub fn cleanup_old_history(days_to_keep: i64) -> Result<usize>
pub fn format_duration(seconds: i64) -> String
pub fn migrate_from_single_file() -> Result<()>
Auto Trait Implementations§
impl Freeze for SessionHistory
impl RefUnwindSafe for SessionHistory
impl Send for SessionHistory
impl Sync for SessionHistory
impl Unpin for SessionHistory
impl UnwindSafe for SessionHistory
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> 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