This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

yew/html/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

use crate::suspense::Suspension;

/// Render Error.
#[derive(Error, Debug, Clone, PartialEq)]
pub enum RenderError {
    /// Component Rendering Suspended
    #[error("component rendering is suspended.")]
    Suspended(#[from] Suspension),
}

/// Render Result.
pub type RenderResult<T> = std::result::Result<T, RenderError>;