pub enum RecError {
}Expand description
Error types for the rec CLI.
Covers all anticipated failure modes including:
- I/O errors (file operations)
- Serialization errors (JSON, TOML)
- Domain errors (session management, recording state)
Variants§
Io(Error)
I/O error during file operations
Json(Error)
JSON serialization/deserialization error
Toml(Error)
TOML parsing error
SessionNotFound(String)
Session not found by name or ID
SessionExists(String)
Session already exists with this name
InvalidSession(String)
Invalid session file format
Config(String)
Configuration error
RecordingInProgress
Attempted to start recording while already recording
NoActiveRecording
Attempted to stop recording when not recording
StaleLock(String)
Stale lock file from a crashed process (includes PID)
InvalidSessionName(String)
Session name contains invalid characters
InvalidAliasName(String)
Alias name contains invalid characters
InvalidTagName(String)
Tag name contains invalid characters after normalization
Implementations§
Trait Implementations§
Source§impl Error for RecError
impl Error for RecError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RecError
impl !RefUnwindSafe for RecError
impl Send for RecError
impl Sync for RecError
impl Unpin for RecError
impl !UnwindSafe for RecError
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