risingwave_common::error::thiserror_ext

Trait AsDyn

pub trait AsDyn: Sealed {
    // Required method
    fn as_dyn(&self) -> &dyn Error;
}
Expand description

Extension trait for Error that casts the error to a trait object.

Required Methods§

fn as_dyn(&self) -> &dyn Error

Casts the error to a trait object.

Implementations on Foreign Types§

§

impl AsDyn for dyn Error

§

fn as_dyn(&self) -> &dyn Error

§

impl AsDyn for dyn Error + Send

§

fn as_dyn(&self) -> &dyn Error

§

impl AsDyn for dyn Error + Sync

§

fn as_dyn(&self) -> &dyn Error

§

impl AsDyn for dyn Error + Sync + Send

§

fn as_dyn(&self) -> &dyn Error

§

impl AsDyn for dyn Error + UnwindSafe + Sync + Send

§

fn as_dyn(&self) -> &dyn Error

Implementors§

§

impl<T> AsDyn for T
where T: Error,