#[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
Serialization(Error)
InvalidInput
NoActiveRecording
RecordingAlreadyActive
CheckpointNotFound
CommandNotFound
InvalidRefHandle
UnknownCondition
Implementations§
Source§impl VictauriError
impl VictauriError
pub fn capacity_exceeded(message: impl Display) -> Self
pub fn invalid_input(message: impl Display) -> Self
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