lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

error.rs (549B)


      1 use alloc::string::String;
      2 use core::fmt;
      3 
      4 #[derive(Debug, Clone, PartialEq, Eq)]
      5 pub enum RadrootsSimplexAppStoreError {
      6     MessageLifecycle(String),
      7 }
      8 
      9 impl fmt::Display for RadrootsSimplexAppStoreError {
     10     fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
     11         match self {
     12             Self::MessageLifecycle(message) => {
     13                 write!(formatter, "SimpleX app message lifecycle error: {message}")
     14             }
     15         }
     16     }
     17 }
     18 
     19 #[cfg(feature = "std")]
     20 impl std::error::Error for RadrootsSimplexAppStoreError {}