pub enum ClientEvent<E> {
Data(E),
Progress {
message: String,
percentage: Option<f32>,
},
}Expand description
One event of a typed Plexus call.
E is the activation’s own event enum — TicketsEvent, not a
hand-mirrored copy of it. That identity is the whole zero-drift argument:
rename a field on the server type and every consumer of this stream stops
compiling.
Terminal states are deliberately not variants here: normal completion
is the stream ending, and both error layers are the Err half of
Result<ClientEvent<E>, ClientError>.
Variants§
Implementations§
Source§impl<E> ClientEvent<E>
impl<E> ClientEvent<E>
Trait Implementations§
Source§impl<E: Clone> Clone for ClientEvent<E>
impl<E: Clone> Clone for ClientEvent<E>
Source§impl<E: Debug> Debug for ClientEvent<E>
impl<E: Debug> Debug for ClientEvent<E>
Source§impl<E: PartialEq> PartialEq for ClientEvent<E>
impl<E: PartialEq> PartialEq for ClientEvent<E>
impl<E: PartialEq> StructuralPartialEq for ClientEvent<E>
Auto Trait Implementations§
impl<E> Freeze for ClientEvent<E>where
E: Freeze,
impl<E> RefUnwindSafe for ClientEvent<E>where
E: RefUnwindSafe,
impl<E> Send for ClientEvent<E>where
E: Send,
impl<E> Sync for ClientEvent<E>where
E: Sync,
impl<E> Unpin for ClientEvent<E>where
E: Unpin,
impl<E> UnsafeUnpin for ClientEvent<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ClientEvent<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