Skip to main content

EmitError

Trait EmitError 

Source
pub trait EmitError<'js> {
    // Required method
    fn emit_error<C>(
        self,
        id: &'static str,
        ctx: &Ctx<'js>,
        this: Class<'js, C>,
    ) -> Result<bool>
       where C: Emitter<'js>;
}

Required Methods§

Source

fn emit_error<C>( self, id: &'static str, ctx: &Ctx<'js>, this: Class<'js, C>, ) -> Result<bool>
where C: Emitter<'js>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'js, T> EmitError<'js> for Result<T>

Source§

fn emit_error<C>( self, id: &'static str, ctx: &Ctx<'js>, this: Class<'js, C>, ) -> Result<bool>
where C: Emitter<'js>,

Implementors§