pub enum OffscreenError {
Show 27 variants
UnsupportedPlatform,
NoDisplays,
InvalidSize,
NotMainThread,
NullWindow,
AlreadyActive,
NoActiveSession,
ConstrainOverrideUnavailable,
OcclusionSpiNotCompiled,
OcclusionSpiUnavailable,
ActivityUnavailable,
ThrottlingOptOutFailed(u32),
PlacementNotApplied {
requested: Rect,
actual: Rect,
},
RestoreFailed {
requested: Rect,
actual: Rect,
},
WindowHidden,
WindowMiniaturized,
WindowOnDisplay {
frame: Rect,
},
InvalidBackingScale,
WindowGone,
Native(String),
Launch(String),
ReportTimeout,
ChildExited(String),
AppReportedError(String),
BadReport(String),
IdentityMismatch {
child_pid: u32,
reported_pid: u32,
},
WindowNotFound {
pid: u32,
window_id: u64,
},
}Variants§
UnsupportedPlatform
NoDisplays
InvalidSize
NotMainThread
NullWindow
AlreadyActive
NoActiveSession
constrainFrameRect:toScreen: could not be overridden on the window class.
OcclusionSpiNotCompiled
Cargo feature offscreen-private-spi is off: the occlusion SPI was not compiled in.
The WKWebView does not respond to _setWindowOcclusionDetectionEnabled:.
NSProcessInfo activity could not be started.
ThrottlingOptOutFailed(u32)
Windows: EcoQoS opt-out failed (Win32 error code).
PlacementNotApplied
RestoreFailed
WindowHidden
WindowMiniaturized
WindowOnDisplay
InvalidBackingScale
WindowGone
Native(String)
Window reads/writes failed with a platform message.
Launch(String)
ReportTimeout
ChildExited(String)
AppReportedError(String)
BadReport(String)
IdentityMismatch
WindowNotFound
Trait Implementations§
Source§impl Clone for OffscreenError
impl Clone for OffscreenError
Source§impl Debug for OffscreenError
impl Debug for OffscreenError
Source§impl Display for OffscreenError
impl Display for OffscreenError
Source§impl Error for OffscreenError
impl Error for OffscreenError
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 PartialEq for OffscreenError
impl PartialEq for OffscreenError
impl StructuralPartialEq for OffscreenError
Auto Trait Implementations§
impl Freeze for OffscreenError
impl RefUnwindSafe for OffscreenError
impl Send for OffscreenError
impl Sync for OffscreenError
impl Unpin for OffscreenError
impl UnsafeUnpin for OffscreenError
impl UnwindSafe for OffscreenError
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