pub enum Error<R: GraphicsApi, T: GraphicsApi>where
R::Error: 'static,
T::Error: 'static,
<<R::Device as ApiDevice>::Renderer as RendererSuper>::Error: 'static,
<<T::Device as ApiDevice>::Renderer as RendererSuper>::Error: 'static,{
RenderApiError(R::Error),
TargetApiError(T::Error),
NoDevice(DrmNode),
MismatchedDevice(DrmNode),
DeviceMissing,
Render(<<R::Device as ApiDevice>::Renderer as RendererSuper>::Error),
Target(<<T::Device as ApiDevice>::Renderer as RendererSuper>::Error),
ImportFailed,
AllocatorError(AnyError),
}Available on crate feature
renderer_multi only.Expand description
Errors generated by GpuManager and MultiRenderer.
Variants§
RenderApiError(R::Error)
The graphics api errored on device enumeration
TargetApiError(T::Error)
The graphics api errored on device enumeration
NoDevice(DrmNode)
The graphics api has found no node matching the drm node
MismatchedDevice(DrmNode)
The device requested did not match the expected
DeviceMissing
The device has gone missing
Render(<<R::Device as ApiDevice>::Renderer as RendererSuper>::Error)
Error on the rendering device
Target(<<T::Device as ApiDevice>::Renderer as RendererSuper>::Error)
Error on the target device
ImportFailed
Failed to import buffer using the api on any device
AllocatorError(AnyError)
Buffer allocation failed
Trait Implementations§
Source§impl<R: GraphicsApi, T: GraphicsApi> Debug for Error<R, T>
impl<R: GraphicsApi, T: GraphicsApi> Debug for Error<R, T>
Source§impl<R: GraphicsApi, T: GraphicsApi> Display for Error<R, T>
impl<R: GraphicsApi, T: GraphicsApi> Display for Error<R, T>
Source§impl<R: GraphicsApi, T: GraphicsApi> Error for Error<R, T>
impl<R: GraphicsApi, T: GraphicsApi> Error for Error<R, T>
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<R: GraphicsApi + 'static, T: GraphicsApi + 'static> From<Error<R, T>> for SwapBuffersErrorwhere
R::Error: Into<SwapBuffersError> + Send + Sync,
T::Error: Into<SwapBuffersError> + Send + Sync,
<<R::Device as ApiDevice>::Renderer as RendererSuper>::Error: Into<SwapBuffersError> + Send + Sync,
<<T::Device as ApiDevice>::Renderer as RendererSuper>::Error: Into<SwapBuffersError> + Send + Sync,
impl<R: GraphicsApi + 'static, T: GraphicsApi + 'static> From<Error<R, T>> for SwapBuffersErrorwhere
R::Error: Into<SwapBuffersError> + Send + Sync,
T::Error: Into<SwapBuffersError> + Send + Sync,
<<R::Device as ApiDevice>::Renderer as RendererSuper>::Error: Into<SwapBuffersError> + Send + Sync,
<<T::Device as ApiDevice>::Renderer as RendererSuper>::Error: Into<SwapBuffersError> + Send + Sync,
Source§fn from(err: Error<R, T>) -> SwapBuffersError
fn from(err: Error<R, T>) -> SwapBuffersError
Converts to this type from the input type.
Source§impl<T: GraphicsApi, R: From<GlesRenderer> + Renderer<Error = GlesError>, A: AsFd + Clone + 'static> From<GlesError> for Error<GbmGlesBackend<R, A>, T>
Available on crate features backend_gbm and backend_egl and renderer_gl only.
impl<T: GraphicsApi, R: From<GlesRenderer> + Renderer<Error = GlesError>, A: AsFd + Clone + 'static> From<GlesError> for Error<GbmGlesBackend<R, A>, T>
Available on crate features
backend_gbm and backend_egl and renderer_gl only.Source§fn from(err: GlesError) -> MultiError<GbmGlesBackend<R, A>, T>
fn from(err: GlesError) -> MultiError<GbmGlesBackend<R, A>, T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<R, T> Freeze for Error<R, T>where
<R as GraphicsApi>::Error: Freeze,
<T as GraphicsApi>::Error: Freeze,
<<<R as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Freeze,
<<<T as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Freeze,
impl<R, T> !RefUnwindSafe for Error<R, T>
impl<R, T> Send for Error<R, T>where
<R as GraphicsApi>::Error: Send,
<T as GraphicsApi>::Error: Send,
<<<R as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Send,
<<<T as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Send,
impl<R, T> Sync for Error<R, T>where
<R as GraphicsApi>::Error: Sync,
<T as GraphicsApi>::Error: Sync,
<<<R as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Sync,
<<<T as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Sync,
impl<R, T> Unpin for Error<R, T>where
<R as GraphicsApi>::Error: Unpin,
<T as GraphicsApi>::Error: Unpin,
<<<R as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Unpin,
<<<T as GraphicsApi>::Device as ApiDevice>::Renderer as RendererSuper>::Error: Unpin,
impl<R, T> !UnwindSafe for Error<R, T>
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.