pub enum SceneError {
Show 18 variants
FramePending,
NoPendingFrame,
AcceptedRevisionMismatch {
expected: u64,
received: u64,
},
UnknownNode {
node: NodeId,
},
ChildAlreadyAttached {
child: NodeId,
parent: NodeId,
},
NotDirectChild {
parent: NodeId,
child: NodeId,
},
ChildIndexOutOfBounds {
parent: NodeId,
index: u32,
len: usize,
},
TreeCycle {
parent: NodeId,
child: NodeId,
},
InvalidOpacity {
opacity: f32,
},
NonFiniteNumber,
InvalidText {
error: TextContentError,
},
InvalidBoxPaint,
InvalidBackgroundLayers,
InvalidVisualEffects,
NodeIdExhausted,
RevisionExhausted,
FrameIdExhausted,
SceneEpochExhausted,
}Expand description
A rejected scene mutation or frame-lifecycle transition.
Variants§
FramePending
A mutation or second preparation was attempted while a frame is pending.
NoPendingFrame
Acceptance or discard was attempted without a prepared frame.
AcceptedRevisionMismatch
Renderer accepted a revision other than the prepared target.
UnknownNode
A node reference is not live in this scene.
ChildAlreadyAttached
An insertion tried to attach a node that already has a parent.
NotDirectChild
A remove or move operation named a node outside the parent’s direct children.
ChildIndexOutOfBounds
A child position exceeded the resulting child-list length.
Fields
TreeCycle
An insertion would introduce a parent cycle.
InvalidOpacity
Opacity was non-finite or outside 0.0..=1.0.
NonFiniteNumber
Layout or transform contained NaN or infinity.
InvalidText
Plain-text presentation contained invalid shaping inputs.
Fields
error: TextContentErrorStable invalid-input category.
InvalidBoxPaint
Background or border paint contained an invalid value.
InvalidBackgroundLayers
One or more retained background image layers were invalid.
InvalidVisualEffects
One or more visual-effect values were invalid.
NodeIdExhausted
The scene cannot allocate another node identifier.
RevisionExhausted
The scene cannot advance its accepted revision.
FrameIdExhausted
The scene cannot allocate another diagnostic frame identifier.
SceneEpochExhausted
The scene cannot rotate to another recovery epoch.
Trait Implementations§
Source§impl Clone for SceneError
impl Clone for SceneError
Source§impl Debug for SceneError
impl Debug for SceneError
Source§impl Display for SceneError
impl Display for SceneError
Source§impl Error for SceneError
impl Error for SceneError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()