pub enum Failure {
State(StateError),
Filesystem(String),
}Expand description
Why a command could not do its job, as opposed to the player getting something wrong. Shown as
a red panel; the exit status is FAILURE.
Variants§
State(StateError)
The state file could not be read, written or removed.
Filesystem(String)
A filesystem operation failed; the text says which.
Trait Implementations§
Source§impl From<FixtureError> for Failure
impl From<FixtureError> for Failure
Source§fn from(error: FixtureError) -> Self
fn from(error: FixtureError) -> Self
Converts to this type from the input type.
Source§impl From<StateError> for Failure
impl From<StateError> for Failure
Source§fn from(error: StateError) -> Self
fn from(error: StateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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