Merge pull request #3054 from dvdsk/clonable-errors

Add Clone and Copy to Error types
This commit is contained in:
Dario Nieuwenhuis
2024-06-09 09:47:26 +00:00
committed by GitHub
11 changed files with 12 additions and 12 deletions

View File

@@ -434,7 +434,7 @@ impl<T: Clone, const CAP: usize, const SUBS: usize, const PUBS: usize> PubSubSta
}
/// Error type for the [PubSubChannel]
#[derive(Debug, PartialEq, Eq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum Error {
/// All subscriber slots are used. To add another subscriber, first another subscriber must be dropped or