pub enum CompositorError {
UnknownWindow,
UnknownTarget,
UnknownItem,
ItemNotInteractive,
ItemDoesNotUseRegionHitTesting,
ItemOwnedByAnotherWindow,
DuplicateSurfaceTarget,
PlatformUnsupported,
}Expand description
Errors produced by compositor state management and platform attachment.
Variants§
UnknownWindow
The requested compositor window is not attached.
UnknownTarget
The requested browser surface target is not known to the compositor.
UnknownItem
The requested scene item is not present in the composition state.
ItemNotInteractive
The requested scene item cannot accept focus.
ItemDoesNotUseRegionHitTesting
The requested scene item cannot accept hit-test snapshots.
ItemOwnedByAnotherWindow
A scene item cannot belong to two compositor windows at once.
DuplicateSurfaceTarget
A browser surface target cannot appear more than once in the live composition.
PlatformUnsupported
The current target/platform combination does not support native hosting.
Trait Implementations§
Source§impl Debug for CompositorError
impl Debug for CompositorError
Source§impl Display for CompositorError
impl Display for CompositorError
Source§impl Error for CompositorError
impl Error for CompositorError
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 CompositorError
impl RefUnwindSafe for CompositorError
impl Send for CompositorError
impl Sync for CompositorError
impl Unpin for CompositorError
impl UnsafeUnpin for CompositorError
impl UnwindSafe for CompositorError
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