pub enum ReloadEvent {
Reload,
Error(String),
}Expand description
Represents the type of reload event sent to connected clients.
Used as the message type in the broadcast channel so that the frontend can distinguish between a successful rebuild and an error.
Variants§
Reload
A successful WASM rebuild; the client should reload the page.
Error(String)
A rebuild error occurred; the message field contains details.
Trait Implementations§
Source§impl Clone for ReloadEvent
impl Clone for ReloadEvent
Source§fn clone(&self) -> ReloadEvent
fn clone(&self) -> ReloadEvent
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 moreSource§impl Debug for ReloadEvent
impl Debug for ReloadEvent
Auto Trait Implementations§
impl Freeze for ReloadEvent
impl RefUnwindSafe for ReloadEvent
impl Send for ReloadEvent
impl Sync for ReloadEvent
impl Unpin for ReloadEvent
impl UnsafeUnpin for ReloadEvent
impl UnwindSafe for ReloadEvent
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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