pub enum ObservationError {
InvalidProviderResponse(String),
ContentHashMismatch,
MissingCaptureContext {
field: String,
},
ProviderNotAvailable {
provider: String,
},
Timeout {
timeout_ms: u64,
},
}Expand description
Errors during observation capture.
Variants§
InvalidProviderResponse(String)
Invalid provider response.
ContentHashMismatch
Content hash mismatch.
MissingCaptureContext
Capture context missing.
ProviderNotAvailable
Provider not available.
Timeout
Timeout during capture.
Implementations§
Source§impl ObservationError
impl ObservationError
Sourcepub fn invalid_response(message: impl Into<String>) -> ObservationError
pub fn invalid_response(message: impl Into<String>) -> ObservationError
Create an invalid provider response error.
Sourcepub fn missing_context(field: impl Into<String>) -> ObservationError
pub fn missing_context(field: impl Into<String>) -> ObservationError
Create a missing capture context error.
Sourcepub fn provider_not_available(provider: impl Into<String>) -> ObservationError
pub fn provider_not_available(provider: impl Into<String>) -> ObservationError
Create a provider not available error.
Sourcepub fn timeout(timeout_ms: u64) -> ObservationError
pub fn timeout(timeout_ms: u64) -> ObservationError
Create a timeout error.
Trait Implementations§
Source§impl Debug for ObservationError
impl Debug for ObservationError
Source§impl Display for ObservationError
impl Display for ObservationError
Source§impl Error for ObservationError
impl Error for ObservationError
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 ObservationError
impl RefUnwindSafe for ObservationError
impl Send for ObservationError
impl Sync for ObservationError
impl Unpin for ObservationError
impl UnsafeUnpin for ObservationError
impl UnwindSafe for ObservationError
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