pub enum EventError<E> {
Guard(GuardError),
Callback(CallbackError<E>),
}Expand description
Error returned from typestate event methods.
Variants§
Guard(GuardError)
Callback(CallbackError<E>)
Implementations§
Source§impl<E> EventError<E>
impl<E> EventError<E>
pub const fn guard(err: GuardError) -> EventError<E>
pub fn callback( action: &'static str, event: &'static str, source: E, ) -> EventError<E>
Trait Implementations§
Source§impl<E> Clone for EventError<E>where
E: Clone,
impl<E> Clone for EventError<E>where
E: Clone,
Source§fn clone(&self) -> EventError<E>
fn clone(&self) -> EventError<E>
Returns a duplicate 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<E> Debug for EventError<E>where
E: Debug,
impl<E> Debug for EventError<E>where
E: Debug,
Source§impl<E> PartialEq for EventError<E>where
E: PartialEq,
impl<E> PartialEq for EventError<E>where
E: PartialEq,
impl<E> Eq for EventError<E>where
E: Eq,
impl<E> StructuralPartialEq for EventError<E>
Auto Trait Implementations§
impl<E> Freeze for EventError<E>where
E: Freeze,
impl<E> RefUnwindSafe for EventError<E>where
E: RefUnwindSafe,
impl<E> Send for EventError<E>where
E: Send,
impl<E> Sync for EventError<E>where
E: Sync,
impl<E> Unpin for EventError<E>where
E: Unpin,
impl<E> UnsafeUnpin for EventError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for EventError<E>where
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