1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use fallible_collections::TryReserveError;
#[derive(Debug, Eq, PartialEq, Clone)]
pub struct OutOfMemoryError;
impl From<TryReserveError> for OutOfMemoryError {
fn from(_: TryReserveError) -> Self {
OutOfMemoryError
}
}
#[derive(Debug, Eq, PartialEq, Clone)]
pub enum ServiceSubscribeError<E> {
Anonymous,
Transport(E),
}
impl<E> From<E> for ServiceSubscribeError<E> {
fn from(inner: E) -> Self {
ServiceSubscribeError::Transport(inner)
}
}