pub enum FrameworkError {
Show 13 variants
ShaderCompilationFailed {
shader_name: String,
error_message: String,
},
ShaderLinkingFailed {
shader_name: String,
error_message: String,
},
FaultyShaderSource,
UnableToFindShaderUniform(String),
UnableToFindShaderUniformBlock(String),
InvalidTextureData {
expected_data_size: usize,
actual_data_size: usize,
},
EmptyTextureData,
InvalidElementRange {
start: usize,
end: usize,
total: usize,
},
InvalidAttributeDescriptor,
InvalidFrameBuffer,
FailedToConstructFBO,
Custom(String),
GraphicsServerUnavailable,
}
Expand description
Set of possible renderer errors.
Variants§
ShaderCompilationFailed
Compilation of a shader has failed.
ShaderLinkingFailed
Means that shader link stage failed, exact reason is inside error_message
FaultyShaderSource
Shader source contains invalid characters.
UnableToFindShaderUniform(String)
There is no such shader uniform (could be optimized out).
UnableToFindShaderUniformBlock(String)
There is no such shader uniform block.
InvalidTextureData
Texture has invalid data - insufficient size.
Fields
EmptyTextureData
None variant was passed as texture data, but engine does not support it.
InvalidElementRange
Means that you tried to draw element range from GeometryBuffer that does not have enough elements.
InvalidAttributeDescriptor
Means that attribute descriptor tries to define an attribute that does not exists in vertex, or it does not match size. For example you have vertex: pos: float2, normal: float3 But you described second attribute as Float4, then you’ll get this error.
InvalidFrameBuffer
Framebuffer is invalid.
FailedToConstructFBO
OpenGL failed to construct framebuffer.
Custom(String)
Custom error. Usually used for internal errors.
Graphics server disconnected.
Trait Implementations§
Source§impl Debug for FrameworkError
impl Debug for FrameworkError
Source§impl Display for FrameworkError
impl Display for FrameworkError
Source§impl From<Error> for FrameworkError
impl From<Error> for FrameworkError
Source§fn from(err: Error) -> FrameworkError
fn from(err: Error) -> FrameworkError
Source§impl From<FrameworkError> for EngineError
impl From<FrameworkError> for EngineError
Source§fn from(renderer: FrameworkError) -> Self
fn from(renderer: FrameworkError) -> Self
Source§impl From<NulError> for FrameworkError
impl From<NulError> for FrameworkError
Source§fn from(_: NulError) -> FrameworkError
fn from(_: NulError) -> FrameworkError
Source§impl From<String> for FrameworkError
impl From<String> for FrameworkError
Source§fn from(v: String) -> FrameworkError
fn from(v: String) -> FrameworkError
Auto Trait Implementations§
impl Freeze for FrameworkError
impl RefUnwindSafe for FrameworkError
impl Send for FrameworkError
impl Sync for FrameworkError
impl Unpin for FrameworkError
impl UnwindSafe for FrameworkError
Blanket Implementations§
Source§impl<T> AsyncTaskResult for T
impl<T> AsyncTaskResult for T
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
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>
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>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Any
. Could be used to downcast a trait object
to a particular type.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Any
. Could be used to downcast a trait object
to a particular type.fn into_any(self: Box<T>) -> Box<dyn Any>
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ScriptMessagePayload for T
impl<T> ScriptMessagePayload for T
Source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
self
as &dyn Any
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
self
as &dyn Any
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.