pub enum MeasurementError {
InvalidPayload {
node: NodeId,
error: MeasurementPayloadError,
},
InvalidPlaceholder {
node: NodeId,
},
InvalidMetrics {
key: MeasurementKey,
},
DuplicateRequestId {
request_id: MeasurementRequestId,
},
MissingSpec {
node: NodeId,
},
Unsupported {
node: NodeId,
reason: UnsupportedMeasurementReason,
},
KeyExhausted,
}Expand description
Failure while validating or resolving intrinsic measurement.
Variants§
InvalidPayload
A typed provider payload violated its schema invariants.
Fields
§
error: MeasurementPayloadErrorStable validation category.
InvalidPlaceholder
A schema declared an invalid provisional placeholder.
InvalidMetrics
A Host response contained non-finite or negative geometry.
Fields
§
key: MeasurementKeyImmediate request correlation key.
DuplicateRequestId
Two live pending responses reused a deferred request identifier.
Fields
§
request_id: MeasurementRequestIdReused Host identifier.
MissingSpec
A measurable Taffy leaf had no paired measurement schema.
Unsupported
A required provider explicitly rejected the request.
Fields
§
reason: UnsupportedMeasurementReasonProvider diagnostic category.
KeyExhausted
The surface exhausted its immediate correlation-key space.
Trait Implementations§
Source§impl Clone for MeasurementError
impl Clone for MeasurementError
Source§impl Debug for MeasurementError
impl Debug for MeasurementError
Source§impl Display for MeasurementError
impl Display for MeasurementError
Source§impl Error for MeasurementError
impl Error for MeasurementError
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()
Source§impl From<MeasurementError> for SurfaceError
impl From<MeasurementError> for SurfaceError
Source§fn from(error: MeasurementError) -> Self
fn from(error: MeasurementError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MeasurementError
impl PartialEq for MeasurementError
impl StructuralPartialEq for MeasurementError
Auto Trait Implementations§
impl Forget for MeasurementError
impl Freeze for MeasurementError
impl Move for MeasurementError
impl RefUnwindSafe for MeasurementError
impl Send for MeasurementError
impl Sync for MeasurementError
impl Unpin for MeasurementError
impl UnsafeUnpin for MeasurementError
impl UnwindSafe for MeasurementError
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