pub enum LayoutError<MeasurementError> {
Surface(SurfaceError),
Measurement(MeasurementError),
InvalidBatch(MeasurementBatchError),
BatchLimitExceeded {
limit: usize,
},
}Expand description
Failure while driving Taffy through the Rust-to-Host measurement boundary.
Variants§
Surface(SurfaceError)
Retained surface or response semantics were invalid.
Measurement(MeasurementError)
The Host binding failed without producing an accepted batch.
InvalidBatch(MeasurementBatchError)
The Host returned a structurally malformed response set.
BatchLimitExceeded
Immediate measurements did not converge within the configured guard.
Trait Implementations§
Source§impl<MeasurementError: Clone> Clone for LayoutError<MeasurementError>
impl<MeasurementError: Clone> Clone for LayoutError<MeasurementError>
Source§impl<MeasurementError: Debug> Debug for LayoutError<MeasurementError>
impl<MeasurementError: Debug> Debug for LayoutError<MeasurementError>
Source§impl<MeasurementError: Debug> Display for LayoutError<MeasurementError>
impl<MeasurementError: Debug> Display for LayoutError<MeasurementError>
Source§impl<MeasurementError: Error + 'static> Error for LayoutError<MeasurementError>
impl<MeasurementError: Error + 'static> Error for LayoutError<MeasurementError>
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<MeasurementError> From<SurfaceError> for LayoutError<MeasurementError>
impl<MeasurementError> From<SurfaceError> for LayoutError<MeasurementError>
Source§fn from(error: SurfaceError) -> Self
fn from(error: SurfaceError) -> Self
Converts to this type from the input type.
Source§impl<MeasurementError: PartialEq> PartialEq for LayoutError<MeasurementError>
impl<MeasurementError: PartialEq> PartialEq for LayoutError<MeasurementError>
impl<MeasurementError: PartialEq> StructuralPartialEq for LayoutError<MeasurementError>
Auto Trait Implementations§
impl<MeasurementError> Forget for LayoutError<MeasurementError>
impl<MeasurementError> Freeze for LayoutError<MeasurementError>where
MeasurementError: Freeze,
impl<MeasurementError> Move for LayoutError<MeasurementError>
impl<MeasurementError> RefUnwindSafe for LayoutError<MeasurementError>where
MeasurementError: RefUnwindSafe,
impl<MeasurementError> Send for LayoutError<MeasurementError>where
MeasurementError: Send,
impl<MeasurementError> Sync for LayoutError<MeasurementError>where
MeasurementError: Sync,
impl<MeasurementError> Unpin for LayoutError<MeasurementError>where
MeasurementError: Unpin,
impl<MeasurementError> UnsafeUnpin for LayoutError<MeasurementError>where
MeasurementError: UnsafeUnpin,
impl<MeasurementError> UnwindSafe for LayoutError<MeasurementError>where
MeasurementError: UnwindSafe,
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