pub enum ToHtmlError {
Parser {
message: String,
details: ParserError,
},
Render {
message: String,
},
}
Variants§
Trait Implementations§
Source§impl Debug for ToHtmlError
impl Debug for ToHtmlError
Source§impl<'de> Deserialize<'de> for ToHtmlError
impl<'de> Deserialize<'de> for ToHtmlError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Error> for ToHtmlError
impl From<Error> for ToHtmlError
Source§impl From<Error> for ToHtmlError
impl From<Error> for ToHtmlError
Source§impl IntoWasmAbi for ToHtmlErrorwhere
Self: Serialize,
impl IntoWasmAbi for ToHtmlErrorwhere
Self: Serialize,
Source§impl OptionIntoWasmAbi for ToHtmlErrorwhere
Self: Serialize,
impl OptionIntoWasmAbi for ToHtmlErrorwhere
Self: Serialize,
Source§impl Serialize for ToHtmlError
impl Serialize for ToHtmlError
Source§impl Tsify for ToHtmlError
impl Tsify for ToHtmlError
const DECL: &'static str = "export type ToHtmlError = { origin: \"parser\"; message: string; details: ParserError } | { origin: \"render\"; message: string };"
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for ToHtmlError
impl RefUnwindSafe for ToHtmlError
impl Send for ToHtmlError
impl Sync for ToHtmlError
impl Unpin for ToHtmlError
impl UnwindSafe for ToHtmlError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.