pub struct RecorderError {
pub reason: RecorderErrorReason,
pub message: String,
}Expand description
Recorder-side failure, distinct from SDK-side ExpectationFailure. CLI / SDK consumers may surface this directly or wrap with context.
Fields§
§reason: RecorderErrorReasonFailure-reason discriminator.
message: StringFree-form human-readable detail.
Implementations§
Source§impl RecorderError
impl RecorderError
Sourcepub fn new<S>(reason: RecorderErrorReason, message: S) -> RecorderError
pub fn new<S>(reason: RecorderErrorReason, message: S) -> RecorderError
Construct a RecorderError with reason + message.
Trait Implementations§
Source§impl Clone for RecorderError
impl Clone for RecorderError
Source§fn clone(&self) -> RecorderError
fn clone(&self) -> RecorderError
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 RecorderError
impl Debug for RecorderError
Source§impl Display for RecorderError
impl Display for RecorderError
Source§impl Error for RecorderError
impl Error for RecorderError
1.30.0 · 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 RecorderError
impl RefUnwindSafe for RecorderError
impl Send for RecorderError
impl Sync for RecorderError
impl Unpin for RecorderError
impl UnsafeUnpin for RecorderError
impl UnwindSafe for RecorderError
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