pub enum LevelSourceError {
UnsupportedChunkPosition,
UnsupportedChunkLoad,
UnsupportedChunkSave,
Custom(Box<dyn Error + Send>),
}
Expand description
Common level source error.
Variants§
Implementations§
Source§impl LevelSourceError
impl LevelSourceError
pub fn new_custom(err: impl Error + Send + 'static) -> Self
Trait Implementations§
Source§impl Debug for LevelSourceError
impl Debug for LevelSourceError
Source§impl Display for LevelSourceError
impl Display for LevelSourceError
Source§impl Error for LevelSourceError
impl Error for LevelSourceError
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 LevelSourceError
impl !RefUnwindSafe for LevelSourceError
impl Send for LevelSourceError
impl !Sync for LevelSourceError
impl Unpin for LevelSourceError
impl !UnwindSafe for LevelSourceError
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