pub enum EventsStreamTermination {
SessionEnded,
Cancelled,
SlowConsumer {
error: ErrorInfo,
},
SessionDeleted {
error: ErrorInfo,
},
ServerShutdown {
error: ErrorInfo,
},
SequenceGap {
error: ErrorInfo,
},
EventTooLarge {
error: ErrorInfo,
},
InternalError {
error: ErrorInfo,
},
}Expand description
The terminal reason is a closed tagged union so reason/error combinations cannot become ambiguous on the wire.
Variants§
SessionEnded
Cancelled
SlowConsumer
SessionDeleted
ServerShutdown
SequenceGap
EventTooLarge
InternalError
Trait Implementations§
Source§impl Clone for EventsStreamTermination
impl Clone for EventsStreamTermination
Source§fn clone(&self) -> EventsStreamTermination
fn clone(&self) -> EventsStreamTermination
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 Debug for EventsStreamTermination
impl Debug for EventsStreamTermination
Source§impl<'de> Deserialize<'de> for EventsStreamTermination
impl<'de> Deserialize<'de> for EventsStreamTermination
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for EventsStreamTermination
impl JsonSchema for EventsStreamTermination
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for EventsStreamTermination
impl PartialEq for EventsStreamTermination
Source§impl Serialize for EventsStreamTermination
impl Serialize for EventsStreamTermination
impl StructuralPartialEq for EventsStreamTermination
Auto Trait Implementations§
impl Freeze for EventsStreamTermination
impl RefUnwindSafe for EventsStreamTermination
impl Send for EventsStreamTermination
impl Sync for EventsStreamTermination
impl Unpin for EventsStreamTermination
impl UnsafeUnpin for EventsStreamTermination
impl UnwindSafe for EventsStreamTermination
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