pub struct RebuildError { /* private fields */ }Expand description
Failure returned by a rebuild closure.
Carries two renderings of the same error so the worker can route each to the surface that needs it:
display— text for the terminalRebuildReporter. May embed ANSI color, but each line must keep its own self-contained SGR span: a single span that straddles newlines bleeds when the line is later re-prefixed (e.g.[server]underxtask dev).message— plain, color-free text broadcast to connected browsers over live-reload (logged to the dev console / shown in overlays). Never embed ANSI here — browsers render escape codes as literal garbage.
Use RebuildError::plain (or the From<String> / From<&str>
conversions) when one rendering serves both surfaces.
Implementations§
Trait Implementations§
Source§impl From<&str> for RebuildError
impl From<&str> for RebuildError
Auto Trait Implementations§
impl Freeze for RebuildError
impl RefUnwindSafe for RebuildError
impl Send for RebuildError
impl Sync for RebuildError
impl Unpin for RebuildError
impl UnsafeUnpin for RebuildError
impl UnwindSafe for RebuildError
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