#[non_exhaustive]pub enum SubscriptionEnd {
Response(Vec<u8>),
StreamEnd,
Error(ErrorBody),
RouteClosed {
reason: RouteEndReason,
},
ConnectionLost,
Cancelled,
Backpressure,
}Expand description
The first terminal outcome of a subscription.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Response(Vec<u8>)
StreamEnd
Error(ErrorBody)
RouteClosed
Fields
§
reason: RouteEndReasonConnectionLost
Cancelled
Backpressure
The bounded event channel filled before the caller drained it.
Trait Implementations§
Source§impl Clone for SubscriptionEnd
impl Clone for SubscriptionEnd
Source§impl Debug for SubscriptionEnd
impl Debug for SubscriptionEnd
Source§impl PartialEq for SubscriptionEnd
impl PartialEq for SubscriptionEnd
impl StructuralPartialEq for SubscriptionEnd
Auto Trait Implementations§
impl Forget for SubscriptionEnd
impl Freeze for SubscriptionEnd
impl Move for SubscriptionEnd
impl RefUnwindSafe for SubscriptionEnd
impl Send for SubscriptionEnd
impl Sync for SubscriptionEnd
impl Unpin for SubscriptionEnd
impl UnsafeUnpin for SubscriptionEnd
impl UnwindSafe for SubscriptionEnd
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