use fallible_collections::TryReserveError;
#[derive(Debug, Eq, PartialEq, Clone)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct OutOfMemoryError;
impl From<TryReserveError> for OutOfMemoryError {
fn from(_: TryReserveError) -> Self {
OutOfMemoryError
}
}
#[derive(Debug, Eq, PartialEq, Clone)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum ServiceSubscribeError<E> {
Anonymous,
Transport(E),
}
impl<E> From<E> for ServiceSubscribeError<E> {
fn from(inner: E) -> Self {
ServiceSubscribeError::Transport(inner)
}
}