rspc-procedure 0.0.1

Interface for a single type-erased operation that the server can execute
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! TODO: A temporary module to allow for interop between modern and legacy code.

// TODO: Remove this once we remove the legacy executor.
#[doc(hidden)]
#[derive(Clone)]
pub struct LegacyErrorInterop(pub String);
impl std::fmt::Debug for LegacyErrorInterop {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "LegacyErrorInterop({})", self.0)
    }
}
impl std::fmt::Display for LegacyErrorInterop {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "LegacyErrorInterop({})", self.0)
    }
}
impl std::error::Error for LegacyErrorInterop {}