ezsp 12.0.1

Ember ZNet Serial Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Error conversion for the `apis-saltans` driver boundary.
//!
//! EZSP errors retain their concrete value inside the hardware abstraction's
//! implementation-specific error variant. An [`Arc`] makes the resulting error
//! cloneable without discarding its source or display text.

use std::sync::Arc;

impl From<crate::Error> for apis_saltans_hw::Error {
    fn from(error: crate::Error) -> Self {
        Self::Implementation(Arc::new(error))
    }
}