Enum evident::subscription::SubscriptionError
source · pub enum SubscriptionError<K: Id> {
AllEventsSubscriptionNotModifiable,
IdNotSubscribed(K),
IdAlreadySubscribed(K),
UnsubscribeWouldDeleteSubscription,
CouldNotAccessPublisher,
NoSubscriptionChannelAvailable,
}
Expand description
Possible errors for (un)subscribe functions.
Variants§
AllEventsSubscriptionNotModifiable
This Subscription
was created to listen to all events, which cannot be modified afterwards.
IdNotSubscribed(K)
Event-ID is not subscribed. Therefore, the ID cannot be unsubscribed.
The problematic ID may be accessed at tuple position 0.
IdAlreadySubscribed(K)
Event-ID is already subscribed. Therefore, the ID cannot be re-subscribed.
The problematic ID may be accessed at tuple position 0.
UnsubscribeWouldDeleteSubscription
Unsubscribing would remove all subscriptions to specific event-IDs.
This would remove all conntections between the Subscription
and the EvidentPublisher
, making it impossible to modify the subscription at a later point.
CouldNotAccessPublisher
Could not lock access to the EvidentPublisher
.
NoSubscriptionChannelAvailable
No sender-part of the subscription-channel between this Subscription
and the EvidentPublisher
is available in the EvidentPublisher
.