pub struct CursorDesktopStore {
pub user_dir: PathBuf,
}Expand description
Reads and writes desktop sessions in a Cursor User directory
(default ~/Library/Application Support/Cursor/User on macOS).
Fields§
§user_dir: PathBufImplementations§
Source§impl CursorDesktopStore
impl CursorDesktopStore
pub fn new(user_dir: impl Into<PathBuf>) -> Self
Sourcepub fn default_root() -> Option<Self>
pub fn default_root() -> Option<Self>
The platform-default Cursor User directory, honoring
CURSOR_DESKTOP_USER_DIR.
Sourcepub fn db_display(&self) -> String
pub fn db_display(&self) -> String
The backing database path, for human-facing messages.
Trait Implementations§
Source§impl Clone for CursorDesktopStore
impl Clone for CursorDesktopStore
Source§fn clone(&self) -> CursorDesktopStore
fn clone(&self) -> CursorDesktopStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CursorDesktopStore
impl Debug for CursorDesktopStore
Source§impl Store for CursorDesktopStore
Available on crate feature opencode only.
impl Store for CursorDesktopStore
Available on crate feature
opencode only.Source§type H = CursorDesktop
type H = CursorDesktop
The harness this store reads and writes.
Source§fn discover(&self) -> Result<Vec<Discovered<String>>>
fn discover(&self) -> Result<Vec<Discovered<String>>>
Cheap metadata scan — no full message parsing. Read more
Source§fn load(&self, reference: &String) -> Result<Transcript<CursorDesktop>>
fn load(&self, reference: &String) -> Result<Transcript<CursorDesktop>>
Load and parse one transcript into its faithful native representation. Read more
Source§fn save(&self, transcript: &Transcript<CursorDesktop>) -> Result<Saved<String>>
fn save(&self, transcript: &Transcript<CursorDesktop>) -> Result<Saved<String>>
Persist a native transcript so the harness can resume it. Read more
Auto Trait Implementations§
impl Freeze for CursorDesktopStore
impl RefUnwindSafe for CursorDesktopStore
impl Send for CursorDesktopStore
impl Sync for CursorDesktopStore
impl Unpin for CursorDesktopStore
impl UnsafeUnpin for CursorDesktopStore
impl UnwindSafe for CursorDesktopStore
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