pub enum HandlerResult {
Unchanged,
Set(RelayVar),
Fail,
FailSilent,
}Expand description
The verdict a handler returns, mirroring Showdown’s
undefined / value / false / null (design §1.2).
Variants§
Unchanged
Relay passes through untouched, continue (Showdown undefined).
Set(RelayVar)
relay becomes this value, continue (Showdown returns a value).
Fail
Relay → falsy: STOP, show “but it failed!” (Showdown false).
FailSilent
Relay → falsy: STOP, no message (Showdown null).
Trait Implementations§
Source§impl Clone for HandlerResult
impl Clone for HandlerResult
Source§fn clone(&self) -> HandlerResult
fn clone(&self) -> HandlerResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HandlerResult
Source§impl Debug for HandlerResult
impl Debug for HandlerResult
Source§impl PartialEq for HandlerResult
impl PartialEq for HandlerResult
impl StructuralPartialEq for HandlerResult
Auto Trait Implementations§
impl Freeze for HandlerResult
impl RefUnwindSafe for HandlerResult
impl Send for HandlerResult
impl Sync for HandlerResult
impl Unpin for HandlerResult
impl UnsafeUnpin for HandlerResult
impl UnwindSafe for HandlerResult
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