pub struct RequiredEventNotCompleted;
Expand description
Event exists but required events haven’t been completed yet. The front-end should handle this error state since this isn’t really an error, but rather an indication that the action is valid.
How to handle this depends on what the front-end should do. An example of this state could be and event where you talk to a subject, but you haven’t yet completed a previous objective. Talking to the subject would be a valid action, but not currently. Story-wise the subject can be somewhere else, or could return a different narrative instad.
Trait Implementations§
Source§impl Clone for RequiredEventNotCompleted
impl Clone for RequiredEventNotCompleted
Source§fn clone(&self) -> RequiredEventNotCompleted
fn clone(&self) -> RequiredEventNotCompleted
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RequiredEventNotCompleted
impl Debug for RequiredEventNotCompleted
Source§impl Display for RequiredEventNotCompleted
impl Display for RequiredEventNotCompleted
Source§impl Error for RequiredEventNotCompleted
impl Error for RequiredEventNotCompleted
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 RequiredEventNotCompleted
impl RefUnwindSafe for RequiredEventNotCompleted
impl Send for RequiredEventNotCompleted
impl Sync for RequiredEventNotCompleted
impl Unpin for RequiredEventNotCompleted
impl UnwindSafe for RequiredEventNotCompleted
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