Skip to main content

CanError

Trait CanError 

Source
pub trait CanError:
    Error
    + Send
    + Sync
    + 'static { }
Expand description

Shared error bound for all CAN backend errors.

Backends define their own concrete error types; this trait ensures they are compatible with the standard Error trait and are thread-safe.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Error + Send + Sync + 'static> CanError for T

Blanket implementation: any type satisfying the bounds automatically implements CanError.