pub enum EventHandlerError<K, E>{
Fail(String),
InvalidState(K),
PlayerError(E),
}Expand description
イベントハンドラ内で発生したエラー
Variants§
Trait Implementations§
Source§impl<K, E> Debug for EventHandlerError<K, E>
impl<K, E> Debug for EventHandlerError<K, E>
Source§impl<K, E> Display for EventHandlerError<K, E>
impl<K, E> Display for EventHandlerError<K, E>
Source§impl<K, E> Error for EventHandlerError<K, E>
impl<K, E> Error for EventHandlerError<K, E>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl<T, E> From<E> for EventHandlerError<T, E>where
T: Debug,
E: PlayerError,
impl<T, E> From<E> for EventHandlerError<T, E>where
T: Debug,
E: PlayerError,
Source§fn from(err: E) -> EventHandlerError<T, E>
fn from(err: E) -> EventHandlerError<T, E>
Converts to this type from the input type.
Source§impl<'a, T, K, E> From<EventHandlerError<K, E>> for EventDispatchError<'a, T, K, E>
impl<'a, T, K, E> From<EventHandlerError<K, E>> for EventDispatchError<'a, T, K, E>
Source§fn from(err: EventHandlerError<K, E>) -> EventDispatchError<'a, T, K, E>
fn from(err: EventHandlerError<K, E>) -> EventDispatchError<'a, T, K, E>
Converts to this type from the input type.
Source§impl<T, E> From<UsiOutputCreateError> for EventHandlerError<T, E>
impl<T, E> From<UsiOutputCreateError> for EventHandlerError<T, E>
Source§fn from(err: UsiOutputCreateError) -> EventHandlerError<T, E>
fn from(err: UsiOutputCreateError) -> EventHandlerError<T, E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<K, E> Freeze for EventHandlerError<K, E>
impl<K, E> RefUnwindSafe for EventHandlerError<K, E>where
K: RefUnwindSafe,
E: RefUnwindSafe,
impl<K, E> Send for EventHandlerError<K, E>
impl<K, E> Sync for EventHandlerError<K, E>
impl<K, E> Unpin for EventHandlerError<K, E>
impl<K, E> UnwindSafe for EventHandlerError<K, E>where
K: UnwindSafe,
E: UnwindSafe,
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