#[non_exhaustive]pub enum VictauriError {
CapacityExceeded {
message: String,
},
Serialization(Error),
InvalidInput {
message: String,
},
NoActiveRecording,
RecordingAlreadyActive,
CheckpointNotFound {
id: String,
},
CommandNotFound {
name: String,
},
InvalidRefHandle {
ref_id: String,
},
UnknownCondition {
condition: String,
},
}Expand description
Errors that can occur within victauri-core operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CapacityExceeded
A capacity limit (event log, checkpoints, etc.) was exceeded.
Serialization(Error)
JSON serialization or deserialization failed.
InvalidInput
An input parameter was invalid or out of range.
NoActiveRecording
Attempted an operation that requires an active recording session.
RecordingAlreadyActive
Attempted to start a recording when one is already active.
CheckpointNotFound
Referenced a checkpoint ID that does not exist.
CommandNotFound
Referenced a command name that is not registered.
InvalidRefHandle
Referenced a ref handle that is invalid or expired.
UnknownCondition
Used an assertion condition that is not recognized.
Implementations§
Source§impl VictauriError
impl VictauriError
Sourcepub fn capacity_exceeded(message: impl Display) -> Self
pub fn capacity_exceeded(message: impl Display) -> Self
Create a CapacityExceeded error.
Sourcepub fn invalid_input(message: impl Display) -> Self
pub fn invalid_input(message: impl Display) -> Self
Create an InvalidInput error.
Trait Implementations§
Source§impl Debug for VictauriError
impl Debug for VictauriError
Source§impl Display for VictauriError
impl Display for VictauriError
Source§impl Error for VictauriError
impl Error for VictauriError
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 VictauriError
impl !RefUnwindSafe for VictauriError
impl Send for VictauriError
impl Sync for VictauriError
impl Unpin for VictauriError
impl UnsafeUnpin for VictauriError
impl !UnwindSafe for VictauriError
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