Skip to main content

StackError

Trait StackError 

Source
pub trait StackError: Error {
    // Required methods
    fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>);
    fn next(&self) -> Option<&dyn StackError>;

    // Provided methods
    fn last(&self) -> &dyn StackError
       where Self: Sized { ... }
    fn transparent(&self) -> bool { ... }
}

Required Methods§

Source

fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)

Source

fn next(&self) -> Option<&dyn StackError>

Provided Methods§

Source

fn last(&self) -> &dyn StackError
where Self: Sized,

Source

fn transparent(&self) -> bool

Indicates whether this error is “transparent”, that it delegates its “display” and “source” to the underlying error. Could be useful when you are just wrapping some external error, AND can not or would not provide meaningful contextual info. For example, the DataFusionError.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: ?Sized + StackError> StackError for Arc<T>

Source§

fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)

Source§

fn next(&self) -> Option<&dyn StackError>

Source§

impl<T: StackError> StackError for Box<T>

Source§

fn debug_fmt(&self, layer: usize, buf: &mut Vec<String>)

Source§

fn next(&self) -> Option<&dyn StackError>

Implementors§