pub enum ErrorFrom<C, S> {
Transport(C),
Application(S),
}Expand description
An error from a fallible RPC call.
A fallible RPC call is one where FnRemote::Output = Result<_, _>.
Variants§
Trait Implementations§
Source§impl<C, S> Error for ErrorFrom<C, S>
impl<C, S> Error for ErrorFrom<C, S>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<C, S> Freeze for ErrorFrom<C, S>
impl<C, S> RefUnwindSafe for ErrorFrom<C, S>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<C, S> Send for ErrorFrom<C, S>
impl<C, S> Sync for ErrorFrom<C, S>
impl<C, S> Unpin for ErrorFrom<C, S>
impl<C, S> UnsafeUnpin for ErrorFrom<C, S>where
C: UnsafeUnpin,
S: UnsafeUnpin,
impl<C, S> UnwindSafe for ErrorFrom<C, S>where
C: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more