pub enum KeyedRosterAssignmentError<K, S, const N: usize> {
Empty(Empty),
Overflow(Overflow),
ForeignReferences(NonEmpty<ForeignRosterReference<K>, N>),
DuplicateReferences(NonEmpty<DuplicateKey<K, N>, N>),
ReusedPayloadSeats(NonEmpty<DuplicateKey<S, N>, N>),
MissingMembers(NonEmpty<UnassignedRosterMember<K>, N>),
}Expand description
How an offered payload roster refuses exact assignment to a keyed denominator.
Variants§
Empty(Empty)
Nothing was offered.
Overflow(Overflow)
Too much was offered.
ForeignReferences(NonEmpty<ForeignRosterReference<K>, N>)
One or more offered payloads name a key outside the denominator.
DuplicateReferences(NonEmpty<DuplicateKey<K, N>, N>)
One or more denominator keys were referenced more than once.
ReusedPayloadSeats(NonEmpty<DuplicateKey<S, N>, N>)
One or more caller-declared payload-seat keys were reused.
MissingMembers(NonEmpty<UnassignedRosterMember<K>, N>)
One or more denominator members received no payload.
Trait Implementations§
Source§impl<K: Clone, S: Clone, const N: usize> Clone for KeyedRosterAssignmentError<K, S, N>
impl<K: Clone, S: Clone, const N: usize> Clone for KeyedRosterAssignmentError<K, S, N>
Source§fn clone(&self) -> KeyedRosterAssignmentError<K, S, N>
fn clone(&self) -> KeyedRosterAssignmentError<K, S, N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K, S, const N: usize> Display for KeyedRosterAssignmentError<K, S, N>
impl<K, S, const N: usize> Display for KeyedRosterAssignmentError<K, S, N>
impl<K: Eq, S: Eq, const N: usize> Eq for KeyedRosterAssignmentError<K, S, N>
Source§impl<K: Debug, S: Debug, const N: usize> Error for KeyedRosterAssignmentError<K, S, N>
impl<K: Debug, S: Debug, const N: usize> Error for KeyedRosterAssignmentError<K, S, N>
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, S: PartialEq, const N: usize> PartialEq for KeyedRosterAssignmentError<K, S, N>
impl<K: PartialEq, S: PartialEq, const N: usize> PartialEq for KeyedRosterAssignmentError<K, S, N>
impl<K: PartialEq, S: PartialEq, const N: usize> StructuralPartialEq for KeyedRosterAssignmentError<K, S, N>
Auto Trait Implementations§
impl<K, S, const N: usize> Freeze for KeyedRosterAssignmentError<K, S, N>where
NonEmpty<ForeignRosterReference<K>, N>: Freeze,
NonEmpty<DuplicateKey<K, N>, N>: Freeze,
NonEmpty<DuplicateKey<S, N>, N>: Freeze,
NonEmpty<UnassignedRosterMember<K>, N>: Freeze,
impl<K, S, const N: usize> RefUnwindSafe for KeyedRosterAssignmentError<K, S, N>where
NonEmpty<ForeignRosterReference<K>, N>: RefUnwindSafe,
NonEmpty<DuplicateKey<K, N>, N>: RefUnwindSafe,
NonEmpty<DuplicateKey<S, N>, N>: RefUnwindSafe,
NonEmpty<UnassignedRosterMember<K>, N>: RefUnwindSafe,
impl<K, S, const N: usize> Send for KeyedRosterAssignmentError<K, S, N>where
NonEmpty<ForeignRosterReference<K>, N>: Send,
NonEmpty<DuplicateKey<K, N>, N>: Send,
NonEmpty<DuplicateKey<S, N>, N>: Send,
NonEmpty<UnassignedRosterMember<K>, N>: Send,
impl<K, S, const N: usize> Sync for KeyedRosterAssignmentError<K, S, N>where
NonEmpty<ForeignRosterReference<K>, N>: Sync,
NonEmpty<DuplicateKey<K, N>, N>: Sync,
NonEmpty<DuplicateKey<S, N>, N>: Sync,
NonEmpty<UnassignedRosterMember<K>, N>: Sync,
impl<K, S, const N: usize> Unpin for KeyedRosterAssignmentError<K, S, N>where
NonEmpty<ForeignRosterReference<K>, N>: Unpin,
NonEmpty<DuplicateKey<K, N>, N>: Unpin,
NonEmpty<DuplicateKey<S, N>, N>: Unpin,
NonEmpty<UnassignedRosterMember<K>, N>: Unpin,
impl<K, S, const N: usize> UnsafeUnpin for KeyedRosterAssignmentError<K, S, N>where
NonEmpty<ForeignRosterReference<K>, N>: UnsafeUnpin,
NonEmpty<DuplicateKey<K, N>, N>: UnsafeUnpin,
NonEmpty<DuplicateKey<S, N>, N>: UnsafeUnpin,
NonEmpty<UnassignedRosterMember<K>, N>: UnsafeUnpin,
impl<K, S, const N: usize> UnwindSafe for KeyedRosterAssignmentError<K, S, N>where
NonEmpty<ForeignRosterReference<K>, N>: UnwindSafe,
NonEmpty<DuplicateKey<K, N>, N>: UnwindSafe,
NonEmpty<DuplicateKey<S, N>, N>: UnwindSafe,
NonEmpty<UnassignedRosterMember<K>, N>: 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