pub enum BarrierConfigError<K> {
EmptyMembership,
DuplicateParticipant(K),
}Expand description
Invalid fixed barrier definition.
Variants§
EmptyMembership
A barrier without participants has no meaningful release transition.
DuplicateParticipant(K)
One participant key appeared more than once.
Trait Implementations§
Source§impl<K: Clone> Clone for BarrierConfigError<K>
impl<K: Clone> Clone for BarrierConfigError<K>
Source§fn clone(&self) -> BarrierConfigError<K>
fn clone(&self) -> BarrierConfigError<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: Debug> Debug for BarrierConfigError<K>
impl<K: Debug> Debug for BarrierConfigError<K>
Source§impl<K> Display for BarrierConfigError<K>
impl<K> Display for BarrierConfigError<K>
Source§impl<K> Error for BarrierConfigError<K>
impl<K> Error for BarrierConfigError<K>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<K: PartialEq> PartialEq for BarrierConfigError<K>
impl<K: PartialEq> PartialEq for BarrierConfigError<K>
impl<K: Eq> Eq for BarrierConfigError<K>
impl<K> StructuralPartialEq for BarrierConfigError<K>
Auto Trait Implementations§
impl<K> Freeze for BarrierConfigError<K>where
K: Freeze,
impl<K> RefUnwindSafe for BarrierConfigError<K>where
K: RefUnwindSafe,
impl<K> Send for BarrierConfigError<K>where
K: Send,
impl<K> Sync for BarrierConfigError<K>where
K: Sync,
impl<K> Unpin for BarrierConfigError<K>where
K: Unpin,
impl<K> UnsafeUnpin for BarrierConfigError<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for BarrierConfigError<K>where
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more