pub enum LaneError {
NotInitialized,
InvalidContext {
expected: &'static str,
received: String,
},
LockPoisoned {
context: &'static str,
},
MissingResource {
kind: &'static str,
key: String,
},
MissingAsset {
kind: &'static str,
id: String,
},
ExecutionFailed(Box<dyn Error + Send + Sync>),
InitializationFailed(Box<dyn Error + Send + Sync>),
}Expand description
Error type for lane operations.
Variants§
NotInitialized
The lane has not been initialized yet.
InvalidContext
The execution context passed to the lane has the wrong type.
Fields
LockPoisoned
A RwLock / Mutex was poisoned by a prior panic.
MissingResource
A required GPU resource (pipeline, buffer, texture, sampler) was not present in the registry the lane consulted.
Fields
MissingAsset
A required asset was not present in the registry / cache.
Fields
ExecutionFailed(Box<dyn Error + Send + Sync>)
A domain-specific error occurred during execution.
InitializationFailed(Box<dyn Error + Send + Sync>)
A domain-specific error occurred during initialization.
Implementations§
Source§impl LaneError
impl LaneError
Sourcepub fn missing(type_name: &'static str) -> Self
pub fn missing(type_name: &'static str) -> Self
Convenience constructor for a missing context entry.
Sourcepub fn lock_poisoned(context: &'static str) -> Self
pub fn lock_poisoned(context: &'static str) -> Self
Convenience constructor for a poisoned lock.
Sourcepub fn missing_resource(kind: &'static str, key: impl Into<String>) -> Self
pub fn missing_resource(kind: &'static str, key: impl Into<String>) -> Self
Convenience constructor for a missing resource.
Sourcepub fn missing_asset(kind: &'static str, id: impl Display) -> Self
pub fn missing_asset(kind: &'static str, id: impl Display) -> Self
Convenience constructor for a missing asset.
Trait Implementations§
Source§impl Error for LaneError
impl Error for LaneError
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 LaneError
impl !RefUnwindSafe for LaneError
impl Send for LaneError
impl Sync for LaneError
impl Unpin for LaneError
impl UnsafeUnpin for LaneError
impl !UnwindSafe for LaneError
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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