pub enum BlockingError {
}
Expand description
Errors that will block the game from processing normally. Since each read of the websocket requires an expected “end of read”, this is a list of unexpected data that would prevent expected results from being sent.
§Example
When picking up an item (i.e. “,”), normally a “input_mode” with a “mode” of 1
would be received, but if there is more than one item where the character
is standing a “menu” with a “pickup” tag will instead be sent. Since this
is unexpected, dcss-api
will send a “Pickup” BlockingError.
Variants§
SeedSelection
NewGameChoice
More
TextInput
Pickup
Acquirement(Value)
Identify(Value)
EnchantWeapon(Value)
EnchantItem(Value)
BrandWeapon(Value)
Skill
Blink
Equipping
Disrobing
Noise
Died
Trait Implementations§
Source§impl Debug for BlockingError
impl Debug for BlockingError
Source§impl Display for BlockingError
impl Display for BlockingError
Source§impl Error for BlockingError
impl Error for BlockingError
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()
Source§impl From<BlockingError> for Error
impl From<BlockingError> for Error
Source§fn from(source: BlockingError) -> Self
fn from(source: BlockingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockingError
impl RefUnwindSafe for BlockingError
impl Send for BlockingError
impl Sync for BlockingError
impl Unpin for BlockingError
impl UnwindSafe for BlockingError
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