pub enum SurfaceError {
Scene(SceneError),
Layout(LayoutError),
SceneLayoutMismatch {
node: NodeId,
},
InvalidLayoutOutput {
node: NodeId,
},
InvalidTransformOutput {
node: NodeId,
},
Measurement(MeasurementError),
}Expand description
Failure while coordinating retained layout and scene state.
Variants§
Scene(SceneError)
The retained scene rejected an operation.
Layout(LayoutError)
The retained layout tree rejected an operation or computation.
SceneLayoutMismatch
A layout snapshot named a node absent from the paired scene.
InvalidLayoutOutput
A layout backend produced non-finite geometry.
InvalidTransformOutput
A computed transform produced a non-finite matrix after box resolution.
Measurement(MeasurementError)
Intrinsic measurement state or a Host response was invalid.
Trait Implementations§
Source§impl Clone for SurfaceError
impl Clone for SurfaceError
Source§impl Debug for SurfaceError
impl Debug for SurfaceError
Source§impl Display for SurfaceError
impl Display for SurfaceError
Source§impl Error for SurfaceError
impl Error for SurfaceError
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<LayoutError> for SurfaceError
impl From<LayoutError> for SurfaceError
Source§fn from(error: LayoutError) -> Self
fn from(error: LayoutError) -> Self
Converts to this type from the input type.
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 From<SceneError> for SurfaceError
impl From<SceneError> for SurfaceError
Source§fn from(error: SceneError) -> Self
fn from(error: SceneError) -> Self
Converts to this type from the input type.
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 PartialEq for SurfaceError
impl PartialEq for SurfaceError
impl StructuralPartialEq for SurfaceError
Auto Trait Implementations§
impl Forget for SurfaceError
impl Freeze for SurfaceError
impl Move for SurfaceError
impl RefUnwindSafe for SurfaceError
impl Send for SurfaceError
impl Sync for SurfaceError
impl Unpin for SurfaceError
impl UnsafeUnpin for SurfaceError
impl UnwindSafe for SurfaceError
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