pub struct RestorableSession {
pub id: String,
pub label: String,
pub workspace: String,
pub queued: u32,
pub interrupted: Option<String>,
pub saved_unix_seconds: u64,
}Expand description
A session whose queued prompts SCV kept when its process stopped (a restart or crash), which a new session can restore.
Fields§
§id: StringThe session that stopped.
label: StringWho it served.
workspace: StringIts workspace.
queued: u32Prompts that never started.
interrupted: Option<String>The start of the prompt whose turn ran when it stopped, which is never sent again by itself.
saved_unix_seconds: u64When it was last saved.
Trait Implementations§
Source§impl Clone for RestorableSession
impl Clone for RestorableSession
Source§impl Debug for RestorableSession
impl Debug for RestorableSession
Source§impl<'de> Deserialize<'de> for RestorableSession
impl<'de> Deserialize<'de> for RestorableSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RestorableSession
Source§impl PartialEq for RestorableSession
impl PartialEq for RestorableSession
Source§impl Serialize for RestorableSession
impl Serialize for RestorableSession
impl StructuralPartialEq for RestorableSession
Auto Trait Implementations§
impl Freeze for RestorableSession
impl RefUnwindSafe for RestorableSession
impl Send for RestorableSession
impl Sync for RestorableSession
impl Unpin for RestorableSession
impl UnsafeUnpin for RestorableSession
impl UnwindSafe for RestorableSession
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