//! `TryFromStatus` — recover a typed failure from a `tonic::Status`.
use Status;
use cratedecode;
use crate::;
/// Attempt to decode a `tonic::Status` back into a typed
/// [`ServiceFailure<E>`](crate::ServiceFailure).
///
/// Returns `Err(RemoteError)` if the embedded type ID is not in `E::TYPE_IDS`
/// (the error came from an unknown service or error type).