pub enum Events<E: Error> {
Ready,
Shutdown,
Connected(Uuid),
Disconnected(Uuid),
Received(Uuid, Vec<u8>),
Error(Option<Uuid>, String),
ConnectionError(Option<Uuid>, E),
ServerError(E),
}
Variants§
Ready
Shutdown
Connected(Uuid)
Disconnected(Uuid)
Received(Uuid, Vec<u8>)
Error(Option<Uuid>, String)
ConnectionError(Option<Uuid>, E)
ServerError(E)
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Events<E>where
E: Freeze,
impl<E> RefUnwindSafe for Events<E>where
E: RefUnwindSafe,
impl<E> Send for Events<E>
impl<E> Sync for Events<E>
impl<E> Unpin for Events<E>where
E: Unpin,
impl<E> UnwindSafe for Events<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